summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-06-01 13:27:38 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-06-01 13:27:38 +0000
commit72decf24cdfc0f4ff2c07c2145891d311c725a35 (patch)
treed48b6dbb553fc89a9e91df9b9479b7c10985fc80 /tools
parentba5e71b50f53c97c1ce806d9582c4c32970bdcf6 (diff)
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
Diffstat (limited to 'tools')
-rwxr-xr-xtools/linux_packaging/build5
1 files changed, 5 insertions, 0 deletions
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"