build-sys: fix linker warning on win32

[196/296] Linking target testsuite/gtk/builder.exe
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/../../../../x86_64-w64-mingw32/bin/ld: warning: --export-dynamic is not supported for PE+ targets, did you mean --export-all-symbols?

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2022-08-18 11:44:32 +04:00
parent 82395e73ad
commit 3585da6b7f

View File

@ -6,6 +6,8 @@ gtk_tests_export_dynamic_ldflag = []
if cc.get_id() != 'msvc'
if os_darwin
gtk_tests_export_dynamic_ldflag = ['-Wl,-export_dynamic']
elif os_win32
gtk_tests_export_dynamic_ldflag = ['-Wl,--export-all-symbols']
else
gtk_tests_export_dynamic_ldflag = ['-Wl,--export-dynamic']
endif