Skip to content

Commit 48a1674

Browse files
committed
va: fix configure check for --version-script with --no-undefined-version
In the upcoming LLD 17 (and previously in LLD 16.0.0, but reverted in 16.0.1), --no-undefined-version is becoming the default behavior. This causes the configure check for --version-scripts support to fail due to the symbols in the version script not being defined, which will cause the version script to not be used, and the build will fail due to --no-undefined-version. This commit adds '-Wl,--undefined-version' to the args of the configure check. Signed-off-by: Violet Purcell <vimproved@inventati.org>
1 parent 984dfee commit 48a1674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

va/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ libva_sym_arg = '-Wl,-version-script,' + '@0@/@1@'.format(meson.current_source_d
6060

6161
libva_link_args = []
6262
libva_link_depends = []
63-
if cc.links('', name: '-Wl,--version-script', args: ['-shared', libva_sym_arg])
63+
if cc.links('', name: '-Wl,--version-script', args: ['-shared', '-Wl,--undefined-version', libva_sym_arg])
6464
libva_link_args = libva_sym_arg
6565
libva_link_depends = libva_sym
6666
endif

0 commit comments

Comments
 (0)