[PATCH xserver 3/4] meson: Use --export-all-symbols when building PE/COFF objects

Jon Turney jon.turney at dronecode.org.uk
Mon Jun 26 13:54:06 UTC 2017


---
 hw/xfree86/meson.build | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/hw/xfree86/meson.build b/hw/xfree86/meson.build
index 0975104c2..3c5f46f0b 100644
--- a/hw/xfree86/meson.build
+++ b/hw/xfree86/meson.build
@@ -71,6 +71,12 @@ if build_dri2
     xorg_link += xorg_dri2
 endif
 
+if host_machine.system() == 'cygwin' or host_machine.system() == 'windows'
+    linker_export_flags = '-Wl,--export-all-symbols'
+else
+    linker_export_flags = '-Wl,--export-dynamic'
+endif
+
 xorg_deps = [
     pixman_dep,
     m_dep,
@@ -91,7 +97,7 @@ executable(
     include_directories: [inc, xorg_inc],
     link_whole: xorg_link,
     dependencies: xorg_deps,
-    link_args: '-Wl,--export-dynamic',
+    link_args: linker_export_flags,
     c_args: xorg_c_args,
     install: true,
 )
@@ -127,7 +133,7 @@ xorgserver_lib = shared_library(
     include_directories: [inc, xorg_inc],
     link_whole: xorg_link,
     dependencies: xorg_deps,
-    link_args: '-Wl,--export-dynamic',
+    link_args: linker_export_flags,
     c_args: xorg_c_args,
     install: false,
 )
-- 
2.12.3



More information about the xorg-devel mailing list