OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 32... Line 32...
32 b=$(stat -c '%a' $F) 32 b=$(stat -c '%a' $F)
33 [ -z "$PATCHELF" ] || [ -z "$TOPDIR" ] || { 33 [ -z "$PATCHELF" ] || [ -z "$TOPDIR" ] || {
34 old_rpath="$($PATCHELF --print-rpath $F)"; new_rpath="" 34 old_rpath="$($PATCHELF --print-rpath $F)"; new_rpath=""
35 for path in $old_rpath; do 35 for path in $old_rpath; do
36 case "$path" in 36 case "$path" in
37 /lib/[^/]*|/usr/lib/[^/]*|\$ORIGIN/*|\$ORIGIN) new_rpath="${new_rpath:+$new_rpath:}$path" ;; 37 /lib/[^/]*|/usr/lib/[^/]*|\$ORIGIN/*) new_rpath="${new_rpath:+$new_rpath:}$path" ;;
38 *) echo "$SELF: $F: removing rpath $path" ;; 38 *) echo "$SELF: $F: removing rpath $path" ;;
39 esac 39 esac
40 done 40 done
41 [ "$new_rpath" = "$old_rpath" ] || $PATCHELF --set-rpath "$new_rpath" $F 41 [ "$new_rpath" = "$old_rpath" ] || $PATCHELF --set-rpath "$new_rpath" $F
42 } 42 }