From dd862931b5d9a29af26c10b717317e00319212b8 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 23 Jul 2025 13:24:48 +0100 Subject: 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 Signed-off-by: Richard Purdie --- meta/recipes-devtools/clang/lldb_git.bb | 1 + 1 file changed, 1 insertion(+) 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 \ -DLLVM_DIR=${STAGING_LIBDIR}/cmake/llvm/ \ -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ -DLLDB_TABLEGEN_EXE=${STAGING_BINDIR_NATIVE}/lldb-tblgen \ + -DLLDB_NO_INSTALL_DEFAULT_RPATH=ON \ " PACKAGECONFIG ??= "libedit libxml2 lzma" -- cgit v1.2.3-54-g00ecf