diff options
author | Ross Burton <ross.burton@arm.com> | 2025-07-23 13:24:48 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-23 18:00:50 +0100 |
commit | dd862931b5d9a29af26c10b717317e00319212b8 (patch) | |
tree | 4f7cfb6ce2c8c3f80d5b6a9fa44ad7b2101d807c | |
parent | 664fa0ede26df6f9af386ee9dfc23b6b817f9ab5 (diff) | |
download | poky-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.bb | 1 |
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 | ||
29 | PACKAGECONFIG ??= "libedit libxml2 lzma" | 30 | PACKAGECONFIG ??= "libedit libxml2 lzma" |