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:
Jacek Caban 2023-06-26 21:00:54 +02:00 committed by Alexandre Julliard
parent 7b9d0a1b6b
commit b090866663

View file

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