mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:54:05 +00:00
winegcc: Disable exporting all symbols on mingw targets.
Mingw targets export all symbols by default if there is no explicit export. We generate export table in winebuild and don't use explicit exports. This may make linker generate an unused export-all table. Spotted by Gabriel Ivăncescu.
This commit is contained in:
parent
7b9d0a1b6b
commit
b090866663
|
@ -407,6 +407,7 @@ static struct strarray get_link_args( struct options *opts, const char *output_n
|
|||
if (opts->nostartfiles || opts->use_msvcrt) strarray_add( &flags, "-nostartfiles" );
|
||||
if (opts->subsystem) strarray_add( &flags, strmake("-Wl,--subsystem,%s", opts->subsystem ));
|
||||
|
||||
strarray_add( &flags, "-Wl,--exclude-all-symbols" );
|
||||
strarray_add( &flags, "-Wl,--nxcompat" );
|
||||
|
||||
if (opts->image_base) strarray_add( &flags, strmake("-Wl,--image-base,%s", opts->image_base ));
|
||||
|
|
Loading…
Reference in a new issue