libwine.so linking

François Gouget fgouget at codeweavers.com
Fri May 25 12:51:52 CDT 2001


   'libwine.so' imports stuff from util (openpty) and from dl
(dlopen...) but it does not link with these libraries. This then forces
any application that wants to link with it to also link for these
libraries. In particular this means that each Winelib application must
be linked with these, which in turn means we must check for these in the
winemaker generated configure.in script.

   So I patched library/Makefile.in to link with these. In fact I just
added '$(LIBS)' on the command line which is probably what was intended
since all other Wine libraries link with it (-lm -lutil -ldl on linux).

Changelog:

 * library/Makefile.in

   Link libwine.so with $(LIBS)


-- 
François Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: library/Makefile.in
===================================================================
RCS file: /home/wine/wine/library/Makefile.in,v
retrieving revision 1.7
diff -u -r1.7 Makefile.in
--- library/Makefile.in	2001/01/17 20:22:24	1.7
+++ library/Makefile.in	2001/05/24 05:04:32
@@ -20,7 +20,7 @@
 @MAKE_RULES@
 
 libwine.so.$(SOVERSION): $(OBJS)
-	$(LDSHARED) $(OBJS) -o $@
+	$(LDSHARED) $(OBJS) $(LIBS) -o $@
 
 libwine.so: libwine.so.$(SOVERSION)
 	$(RM) $@ && $(LN_S) libwine.so.$(SOVERSION) $@


More information about the wine-patches mailing list