]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
lldb: don't build rpaths into binaries
authorRoss Burton <ross.burton@arm.com>
Wed, 23 Jul 2025 12:24:48 +0000 (13:24 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Jul 2025 17:00:36 +0000 (18:00 +0100)
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.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/clang/lldb_git.bb

index 4eec175ff0ea713e5efd0400b28524416beea056..eafc3cb3128a6569e583a435226ee6b7f26acb76 100644 (file)
@@ -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"