From 8ef9f004a9c57f551785c853e05ce2e471e36ac1 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sun, 30 Jan 2022 20:35:24 +0000 Subject: [PATCH] llvm: strip rpath from binaries Currently a relative RPATH like $ORIGIN/..lib gets embedded into all the binaries produced. It is not needed, since the DSO are already in the standard ld-aware location - /usr/lib. Remove it, since it adds extra lookups to the run-time linker. Signed-off-by: Emil Velikov --- repos/extra-x86_64/PKGBUILD | 1 + 1 file changed, 1 insertion(+) diff --git a/repos/extra-x86_64/PKGBUILD b/repos/extra-x86_64/PKGBUILD index 6be436ff..863d5e86 100644 --- a/repos/extra-x86_64/PKGBUILD +++ b/repos/extra-x86_64/PKGBUILD @@ -49,6 +49,7 @@ build() { cmake .. -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_SKIP_RPATH=TRUE \ -DLLVM_HOST_TRIPLE=$CHOST \ -DLLVM_BUILD_LLVM_DYLIB=ON \ -DLLVM_LINK_LLVM_DYLIB=ON \ -- 2.34.1