summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-07-23 13:24:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-07-23 18:00:50 +0100
commitdd862931b5d9a29af26c10b717317e00319212b8 (patch)
tree4f7cfb6ce2c8c3f80d5b6a9fa44ad7b2101d807c
parent664fa0ede26df6f9af386ee9dfc23b6b817f9ab5 (diff)
downloadpoky-dd862931b5d9a29af26c10b717317e00319212b8.tar.gz
lldb: don't build rpaths into binaries
LLDB defaults to adding rpaths into the binaries which are then stripped by CMake on install. However, this rpath removal is implemented by editing the binary instead of relinking at install time, so the final binary will have an entry in the dynstr section which is all nulls but is as long as the build path. Obviously this breaks reproducibility, so disable the use of rpaths in LLDB to remove this problem. (From OE-Core rev: d96e0458b696a7359d310cbe112c5dc2fc60f97d) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/clang/lldb_git.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/clang/lldb_git.bb b/meta/recipes-devtools/clang/lldb_git.bb
index 4eec175ff0..eafc3cb312 100644
--- a/meta/recipes-devtools/clang/lldb_git.bb
+++ b/meta/recipes-devtools/clang/lldb_git.bb
@@ -24,6 +24,7 @@ EXTRA_OECMAKE = "-DLLDB_INCLUDE_TESTS=OFF \
24 -DLLVM_DIR=${STAGING_LIBDIR}/cmake/llvm/ \ 24 -DLLVM_DIR=${STAGING_LIBDIR}/cmake/llvm/ \
25 -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ 25 -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen \
26 -DLLDB_TABLEGEN_EXE=${STAGING_BINDIR_NATIVE}/lldb-tblgen \ 26 -DLLDB_TABLEGEN_EXE=${STAGING_BINDIR_NATIVE}/lldb-tblgen \
27 -DLLDB_NO_INSTALL_DEFAULT_RPATH=ON \
27" 28"
28 29
29PACKAGECONFIG ??= "libedit libxml2 lzma" 30PACKAGECONFIG ??= "libedit libxml2 lzma"