build/meson: fix the -Wl,--version-script configure check

Hopefully this fixes compilation on darwin, which doesn't support
version scripts.

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2018-02-14 15:07:46 +02:00
parent afea3dd0cd
commit edb1c66239
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ add_project_arguments('-include', 'config.h', language: 'c')
# Supports -Wl,--version-script? # Supports -Wl,--version-script?
have_version_script = cc.links( have_version_script = cc.links(
'int main(){}', 'int main(){}',
link_args: '-Wl,--version-script=' + join_paths(meson.source_root(), 'xkbcommon.map'), args: '-Wl,--version-script=' + join_paths(meson.source_root(), 'xkbcommon.map'),
name: '-Wl,--version-script', name: '-Wl,--version-script',
) )