summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2017-06-26 14:54:06 +0100
committerAdam Jackson <ajax@redhat.com>2017-06-27 12:42:51 -0400
commit47a7b63f7455eaeacb634fd800e924f2087dacbd (patch)
treecfccd7d2b3432f5bd7969d06b28b77b56f1cc9e1
parentb34abb3d2da46339d59a0feefd2240790a6a6a0e (diff)
meson: Use --export-all-symbols when building PE/COFF objects
Reviewed-by: Adam Jackson <ajax@redhat.com>
-rw-r--r--hw/xfree86/meson.build10
1 files 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,
)