Fix remove-rpath script, take 2
[vpp.git] / build-root / scripts / remove-rpath
index bda3d60..3912b37 100755 (executable)
@@ -12,13 +12,13 @@ if [ $? -ne 0 ] ; then
        exit 1
 fi
 
-libs=$(find $1 -type f -name \*.so)
+libs=$(find $1 -type f -name \*.so\*)
 execs=$(find $1 -type f -path \*/bin/\* )
 
 for i in $libs $execs; do
        chrpath $i 2> /dev/null | grep -q build-root
        if [ $? -eq 0 ] ; then
-               chrpath $i
+               chrpath -d $i
        fi
 done