From: nbd Date: Sun, 29 Sep 2013 20:12:27 +0000 (+0000) Subject: scripts/gen-dependencies.sh: use the cross readelf (#12940) X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=162cca9386fd2d451732562efeaf57a533f3de86;p=12.09%2Fopenwrt.git scripts/gen-dependencies.sh: use the cross readelf (#12940) Signed-off-by: Felix Fietkau Backport of r38259 git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@38260 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/scripts/gen-dependencies.sh b/scripts/gen-dependencies.sh index df8073e..02cffb2 100755 --- a/scripts/gen-dependencies.sh +++ b/scripts/gen-dependencies.sh @@ -19,6 +19,6 @@ XARGS="${XARGS:-xargs -r}" find $TARGETS -type f -a -exec file {} \; | \ sed -n -e 's/^\(.*\):.*ELF.*\(executable\|shared object\).*,.* stripped/\1/p' | \ - $XARGS -n1 readelf -d | \ + $XARGS -n1 $READELF -d | \ awk '$2 ~ /NEEDED/ && $NF !~ /interpreter/ && $NF ~ /^\[?lib.*\.so/ { gsub(/[\[\]]/, "", $NF); print $NF }' | \ sort -u