Jacek Caban : winegcc: Use gcc -shared instead of dllwrap to build DLLs.

Alexandre Julliard julliard at winehq.org
Wed May 8 15:48:21 CDT 2013


Module: wine
Branch: master
Commit: c3b64d94b50744d0c17a57fa14873aaa7d4ba134
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c3b64d94b50744d0c17a57fa14873aaa7d4ba134

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed May  8 17:33:10 2013 +0200

winegcc: Use gcc -shared instead of dllwrap to build DLLs.

---

 tools/winegcc/winegcc.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index 4b0d3e8..65f066c 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -798,6 +798,8 @@ static void build(struct options* opts)
         if (opts->win16_app)
             error( "Building 16-bit code is not supported for Windows\n" );
 
+        strarray_addall(link_args, get_translator(opts));
+
         if (opts->shared)
         {
             /* run winebuild to generate the .def file */
@@ -814,16 +816,13 @@ static void build(struct options* opts)
             spawn(opts->prefix, spec_args, 0);
             strarray_free(spec_args);
 
-            if (opts->target) strarray_add(link_args, strmake("%s-dllwrap", opts->target));
-            else strarray_add(link_args, "dllwrap");
+            strarray_add(link_args, "-shared");
             if (verbose) strarray_add(link_args, "-v");
-            strarray_add(link_args, "-k");
-            strarray_add(link_args, "--def");
+            strarray_add(link_args, "-Wl,--kill-at");
             strarray_add(link_args, spec_def_name);
         }
         else
         {
-            strarray_addall(link_args, get_translator(opts));
             strarray_add(link_args, opts->gui_app ? "-mwindows" : "-mconsole");
             if (opts->nodefaultlibs) strarray_add(link_args, "-nodefaultlibs");
         }




More information about the wine-cvs mailing list