mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user