add use of chrpath
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 12 Jun 2012 20:07:39 +0000 (20:07 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 12 Jun 2012 20:07:39 +0000 (20:07 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@12681 d708f5d6-7413-0410-9779-e7cbd77b26cf

tools/linux_packaging/build

index 201dfcd2c97650bdddeeac38378bcbd9e6cc43d9..11b5e191ba098b0a6f25459f15d3b957e68adcbf 100755 (executable)
@@ -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"