mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:17:14 +00:00
winegcc: Use -nostdlib instead of -nostartfiles on Clang MSVC targets.
-nostartfiles is not enough if clang is configured with explicit default rtlib.
This commit is contained in:
parent
c096d6cec7
commit
cc91a2f933
|
@ -482,7 +482,8 @@ static struct strarray get_link_args( struct options *opts, const char *output_n
|
|||
}
|
||||
if (opts->unicode_app) strarray_add( &flags, "-municode" );
|
||||
if (opts->nodefaultlibs || opts->use_msvcrt) strarray_add( &flags, "-nodefaultlibs" );
|
||||
if (opts->nostartfiles || opts->use_msvcrt) strarray_add( &flags, "-nostartfiles" );
|
||||
if (opts->nostartfiles) strarray_add( &flags, "-nostartfiles" );
|
||||
if (opts->use_msvcrt) strarray_add( &flags, "-nostdlib" );
|
||||
if (opts->image_base) strarray_add( &flags, strmake("-Wl,-base:%s", opts->image_base ));
|
||||
if (opts->subsystem)
|
||||
strarray_add( &flags, strmake("-Wl,-subsystem:%s", opts->subsystem ));
|
||||
|
|
Loading…
Reference in a new issue