add use of chrpath

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@12681 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-06-12 20:07:39 +00:00
parent 12ca91dd49
commit 2edbc3cf67

View file

@ -430,6 +430,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
#
chrpath -r $Libraries $Libraries/`basename $dep`
if echo $dep | grep -sq '^/' ; then
# absolute path, candidate for stripping
deplibs="$deplibs $base"