meson: Correctly set Libs: in xorg-server.pc for Windows

c.f. configure.ac:1663

v2:
Also drop -lfb from XORG_DRIVER_LIBS, since it's linked statically into
the Xorg server since c1703cdf.
This commit is contained in:
Jon Turney 2018-06-06 16:25:49 +01:00
parent 0f9aaa2c6f
commit 37b1c3d074

View File

@ -860,6 +860,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 -no-undefined')
endif
configure_file(
input: 'xorg-server.pc.in',
output: 'xorg-server.pc',