From 72decf24cdfc0f4ff2c07c2145891d311c725a35 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 1 Jun 2012 13:27:38 +0000 Subject: [PATCH] use patchelf to reset RPATH within bundled libraries so that the runtime linker will not go looking in places set by parts of the GTK build stack git-svn-id: svn://localhost/ardour2/branches/3.0@12521 d708f5d6-7413-0410-9779-e7cbd77b26cf --- tools/linux_packaging/build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/linux_packaging/build b/tools/linux_packaging/build index 564dd6a8f0..b7a1f6c6a6 100755 --- a/tools/linux_packaging/build +++ b/tools/linux_packaging/build @@ -445,6 +445,11 @@ while [ true ] ; do echo "Copying dependant lib $dep (required by ${parent})" cp $dep $Libraries fi + # + # reset RPATH so that the runtime linker never looks + # in places we don't want it to + # + patchelf --set-rpath $Libraries $Libraries/`basename $dep` if echo $dep | grep -sq '^/' ; then # absolute path, candidate for stripping deplibs="$deplibs $base"