1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +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:
Jacek Caban 2022-11-25 14:36:30 +01:00 committed by Alexandre Julliard
parent c096d6cec7
commit cc91a2f933

View File

@ -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 ));