Commit cc91a2f9 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

winegcc: Use -nostdlib instead of -nostartfiles on Clang MSVC targets.

-nostartfiles is not enough if clang is configured with explicit default rtlib.
parent c096d6ce
......@@ -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 ));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment