From 8e680e01cd63a97805add624f896c433bad76d32 Mon Sep 17 00:00:00 2001 From: Albert S Date: Tue, 28 Jun 2022 23:32:02 +0200 Subject: [PATCH] scripts: 5-bundle.sh: Set rpath with patchelf As an alternative to LD_LIBRARY_PATH. --- scripts/5-bundle.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/5-bundle.sh b/scripts/5-bundle.sh index b8d0509..f092d52 100755 --- a/scripts/5-bundle.sh +++ b/scripts/5-bundle.sh @@ -9,5 +9,11 @@ cp src/looqs-gui ${DIRNAME} cp src/looqs ${DIRNAME} chmod 755 src/looqs-gui chmod 755 src/looqs + +patchelf --set-rpath '$ORIGIN/../lib/' ${DIRNAME}/bin/* +patchelf --set-rpath '$ORIGIN' ${DIRNAME}/lib/*.so* +patchelf --set-rpath '$ORIGIN/../../' $( find "${DIRNAME}/lib/plugins/" | grep so$ ) + + tar cfpvJ "${DIRNAME}".tar.xz "${DIRNAME}" gpg -b --local-user "$SIGNING_KEY_EMAIL" "$ARCHIVENAME"