Add rpath option with /hal/lib/
authorJoonbum Ko <joonbum.ko@samsung.com>
Thu, 19 Aug 2021 04:48:58 +0000 (13:48 +0900)
committerXuelian Bai <xuelian.bai@samsung.com>
Tue, 21 Feb 2023 06:35:16 +0000 (14:35 +0800)
Change-Id: I8b31bd3a6db6bad405c9ddd272697a9cd12ad698
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
meson.build

index 06708fa..4ef8edd 100644 (file)
@@ -1199,7 +1199,7 @@ 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'
+    ld_args_gc_sections += '-Wl,--gc-sections,-rpath,/hal/lib'
     _trial_c += ['-ffunction-sections', '-fdata-sections']
     _trial_cpp += ['-ffunction-sections', '-fdata-sections']
   endif