[gtk: 1/3] build-sys: fix linker warning on win32




commit 3585da6b7f19569bda85589d972396b2836c32e1
Author: Marc-André Lureau <marcandre lureau redhat com>
Date:   Thu Aug 18 11:44:32 2022 +0400

    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>

 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]