summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonbum Ko <joonbum.ko@samsung.com>2021-08-19 19:15:26 +0900
committerXuelian Bai <xuelian.bai@samsung.com>2024-01-18 09:31:56 +0800
commit1e45950ae6ffdd35bbb2715364ea6465aa1b9855 (patch)
tree36cb2a5dbf616ec3bc7261acbb86847cc8a34a4f
parent7dd7103e493fd3418ec01d1c48cdbce16241f468 (diff)
downloadmesa-1e45950ae6ffdd35bbb2715364ea6465aa1b9855.tar.gz
mesa-1e45950ae6ffdd35bbb2715364ea6465aa1b9855.tar.bz2
mesa-1e45950ae6ffdd35bbb2715364ea6465aa1b9855.zip
Modify rpath option to support both armv7l and aarch64
Change-Id: Ib250916f0d8ca096107eb988626fa20e221bda3a Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
-rw-r--r--meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 31a91df6b28..204b30abd38 100644
--- a/meson.build
+++ b/meson.build
@@ -1086,7 +1086,9 @@ else
# relevant for Vulkan drivers).
if cc.links('static char unused() { return 5; } int main() { return 0; }',
args : '-Wl,--gc-sections', name : 'gc-sections')
- ld_args_gc_sections += '-Wl,--gc-sections,-rpath,/hal/lib'
+ ld_args_gc_sections += '-Wl,--gc-sections'
+ ld_args_gc_sections += '-Wl,-rpath,@0@'.format(
+ join_paths(get_option('prefix'), get_option('libdir')))
_trial_c += ['-ffunction-sections', '-fdata-sections']
_trial_cpp += ['-ffunction-sections', '-fdata-sections']
endif