meson: inform ld to accept undefined symbols for version-scripts (#459)
with lld 1.17, linking with a symbol map which contains symbols which actually do not exists now result in an error, which means the test in meson.build to check if -Wl,--version-script works always fails. because it tries to use the general map file with "int main(void) {}".
Fixes #424
This commit is contained in:
1 parent
58d0bdc743
commit
ebe4157d77
1 file changed
+1
-1
+1
-1
@@ -145,7 +145,7 @@ configh_data.set('WIN32_LEAN_AND_MEAN', 1)
|
||||
# Supports -Wl,--version-script?
|
||||
have_version_script = cc.links(
|
||||
'int main(){}',
|
||||
args: '-Wl,--version-script=' + meson.current_source_dir()/'xkbcommon.map',
|
||||
args: '-Wl,--undefined-version,--version-script=' + meson.current_source_dir()/'xkbcommon.map',
|
||||
name: '-Wl,--version-script',
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user