From 1e281555bd6ee77c317c24073a0e19866fce7e56 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sun, 30 Jan 2022 20:26:25 +0000 Subject: [PATCH] clang: 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 1e32af17..0a9a8f28 100644 --- a/repos/extra-x86_64/PKGBUILD +++ b/repos/extra-x86_64/PKGBUILD @@ -75,6 +75,7 @@ build() { -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr + -DCMAKE_SKIP_RPATH=TRUE -DLLVM_LINK_LLVM_DYLIB=ON -DCLANG_LINK_CLANG_DYLIB=ON -DLLVM_ENABLE_RTTI=ON -- 2.34.1