summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-06-06 16:25:49 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2018-08-28 18:57:24 +0100
commitbbcbc4b77ce9ac1677a4e2289dcfae753fbfe5f2 (patch)
tree67f01fed9fbd272da61e0476ec57412443294b71
parent545b84e824c7180bb3512c6a248a7c1ebf371698 (diff)
meson: Correctly set Libs: in xorg-server.pc for Windows
c.f. configure.ac:1728
-rw-r--r--meson.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index ff661f9d1..92380dfc9 100644
--- a/meson.build
+++ b/meson.build
@@ -653,6 +653,13 @@ if build_xorg
sdkconfig.set('symbol_visibility', '-fvisibility=hidden')
sdkconfig.set('XORG_DRIVER_LIBS', '')
+ # On Windows, modules built with the SDK will need to link with server and
+ # module implibs to resolve symbols
+ if (host_machine.system() == 'cygwin' or
+ host_machine.system() == 'windows')
+ sdkconfig.set('XORG_DRIVER_LIBS', '-lXorg.exe -L\${moduledir} -lshadow -lfb -no-undefined')
+ endif
+
configure_file(
input: 'xorg-server.pc.in',
output: 'xorg-server.pc',