[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: [PATCH 2/2] winegcc: Always use -nostartfiles when building DLLs.
From: Jacek Caban <jacek () codeweavers ! com>
Date: 2019-07-31 19:40:33
Message-ID: 0250e32a-8dd2-0f75-5b09-4ac992ccc060 () codeweavers ! com
[Download RAW message or body]
So that simplified DllMainCRTStartup version from winecrt0 is used
instead of mingw crt.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
---
tools/winegcc/winegcc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
["0002-winegcc-Always-use-nostartfiles-when-building-DLLs.txt" (text/x-patch)]
diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index 3d1817a36b..563bb3a73f 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -438,7 +438,7 @@ static strarray *get_link_args( struct options *opts, const char *output_name )
if (opts->unicode_app) strarray_add( flags, "-municode" );
if (opts->nodefaultlibs) strarray_add( flags, "-nodefaultlibs" );
- if (opts->nostartfiles) strarray_add( flags, "-nostartfiles" );
+ if (opts->nostartfiles || opts->shared) strarray_add( flags, "-nostartfiles" );
if (opts->subsystem)
{
[Attachment #4 (text/plain)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic