Skip to content

Commit

Permalink
va: fix configure check for --version-script with --no-undefined-version
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
vimproved committed Jul 20, 2023
1 parent 984dfee commit 48a1674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion va/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ libva_sym_arg = '-Wl,-version-script,' + '@0@/@1@'.format(meson.current_source_d

libva_link_args = []
libva_link_depends = []
if cc.links('', name: '-Wl,--version-script', args: ['-shared', libva_sym_arg])
if cc.links('', name: '-Wl,--version-script', args: ['-shared', '-Wl,--undefined-version', libva_sym_arg])
libva_link_args = libva_sym_arg
libva_link_depends = libva_sym
endif
Expand Down

0 comments on commit 48a1674

Please sign in to comment.