diff --git a/tools/linux_packaging/build b/tools/linux_packaging/build index 201dfcd2c9..11b5e191ba 100755 --- a/tools/linux_packaging/build +++ b/tools/linux_packaging/build @@ -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"