From 7cc36cd27ab6f1595d61ec9e1d5b9669b82b25c2 Mon Sep 17 00:00:00 2001 From: Joonbum Ko Date: Thu, 19 Aug 2021 19:15:26 +0900 Subject: Modify rpath option to support both armv7l and aarch64 Change-Id: Ib250916f0d8ca096107eb988626fa20e221bda3a Signed-off-by: Joonbum Ko --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 6ddbb712d9e..d8eb544adc7 100644 --- a/meson.build +++ b/meson.build @@ -1331,7 +1331,9 @@ ld_args_gc_sections = [] 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' - ld_args_gc_sections += '-Wl,-rpath,/hal/lib' + + ld_args_gc_sections += '-Wl,-rpath,@0@'.format( + join_paths(get_option('prefix'), get_option('libdir'))) endif with_ld_version_script = false if cc.links('int main() { return 0; }', -- cgit v1.2.3