aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bundle-libraries.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/scripts/bundle-libraries.sh b/scripts/bundle-libraries.sh
index 4662b98dee..d3c7206a4d 100755
--- a/scripts/bundle-libraries.sh
+++ b/scripts/bundle-libraries.sh
@@ -156,17 +156,16 @@ for BIN in "$@"; do
dest="$DIR/lib/${token##*/}"
ddir="${dest%/*}"
+ case "$token" in
+ */ld-*.so*) LDSO="${token##*/}" ;;
+ esac
+
[ -f "$token" -a ! -f "$dest" ] && {
_md "$ddir"
_cp "$token" "$dest"
case "$token" in
- *ld-*.so*)
- LDSO="${token##*/}"
- _patch_ldso "$dest"
- ;;
- libc.so.6|*/libc.so.6)
- _patch_glibc "$dest"
- ;;
+ */ld-*.so*) _patch_ldso "$dest" ;;
+ */libc.so.6) _patch_glibc "$dest" ;;
esac
}
;; esac