radv: Always use linker script when possible.

Also without LLVM. Useful for Android with statically linked libelf.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13164>
This commit is contained in:
Bas Nieuwenhuizen 2021-10-04 00:11:36 +02:00 committed by Marge Bot
parent 66713d33fe
commit bbd091d1fa

View file

@ -136,7 +136,7 @@ endif
libvulkan_radeon_ld_args = []
libvulkan_radeon_link_depends = []
if with_llvm and with_ld_version_script
if with_ld_version_script
libvulkan_radeon_ld_args += ['-Wl,--version-script', join_paths(meson.current_source_dir(), 'vulkan.sym')]
libvulkan_radeon_link_depends += files('vulkan.sym')
endif