From 3585da6b7f19569bda85589d972396b2836c32e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 18 Aug 2022 11:44:32 +0400 Subject: [PATCH] build-sys: fix linker warning on win32 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [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 --- testsuite/gtk/meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testsuite/gtk/meson.build b/testsuite/gtk/meson.build index 4c5d70a088..b9f039627a 100644 --- a/testsuite/gtk/meson.build +++ b/testsuite/gtk/meson.build @@ -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