winewrap: don't ignore libs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ChangeLog
    Don't ignore libs specified by the user while linking.

Index: tools/winegcc/winewrap.c
===================================================================
RCS file: /var/cvs/wine/tools/winegcc/winewrap.c,v
retrieving revision 1.8
diff -u -r1.8 winewrap.c
--- tools/winegcc/winewrap.c	15 Oct 2003 03:35:54 -0000	1.8
+++ tools/winegcc/winewrap.c	28 Oct 2003 19:36:12 -0000
@@ -597,10 +597,14 @@
     strarray_add(link_args, cpp ? "g++" : "gcc");
     strarray_add(link_args, "-shared");
     strarray_add(link_args, "-Wl,-Bsymbolic,-z,defs");
-    strarray_add(link_args, "-lwine");
-    strarray_add(link_args, "-lm");
+
     for (i = 0; i < llib_paths->size; i++)
 	strarray_add(link_args, llib_paths->base[i]);
+    strarray_add(link_args, "-lwine");
+    strarray_add(link_args, "-lm");
+    for (i = 0; i < lib_files->size; i++)
+	strarray_add(link_args, lib_files->base[i]);
+
     strarray_add(link_args, "-o");
     if (create_wrapper)
 	strarray_add(link_args, strmake("%s/%s.so", base_path, app_name));


-- 
Dimi.



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux