From: Yousong Zhou Date: Thu, 2 Jan 2020 02:36:52 +0000 (+0800) Subject: scripts: bundle-libraries: compat with "file" before version 5.22 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=405088eeceaa5a2df1e3850f303e80fb47b8ed83;p=openwrt%2Fstaging%2Fyousong.git scripts: bundle-libraries: compat with "file" before version 5.22 File command before version 5.22 prints "uses shared libraries" instead of the interpreter name. The upstream commit is a02398dde Signed-off-by: Yousong Zhou --- diff --git a/scripts/bundle-libraries.sh b/scripts/bundle-libraries.sh index e110ef3090..805e1339c7 100755 --- a/scripts/bundle-libraries.sh +++ b/scripts/bundle-libraries.sh @@ -151,7 +151,7 @@ for BIN in "$@"; do LDSO="" - [ -n "$LDD" ] && [ -x "$BIN" ] && file "$BIN" | grep -sqE "ELF.*(executable|interpreter)" && { + [ -n "$LDD" ] && [ -x "$BIN" ] && file "$BIN" | grep -sqE "ELF.*(executable|interpreter|uses shared libs)" && { for token in $("$LDD" "$BIN" 2>/dev/null); do case "$token" in */*.so*) dest="$DIR/lib/${token##*/}"