1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-09 03:40:18 +00:00

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>
This commit is contained in:
Ross Burton
2025-07-23 13:24:48 +01:00
committed by Richard Purdie
parent 664fa0ede2
commit dd862931b5
+1
View 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"