From 162cca9386fd2d451732562efeaf57a533f3de86 Mon Sep 17 00:00:00 2001 From: nbd Date: Sun, 29 Sep 2013 20:12:27 +0000 Subject: [PATCH] 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 --- scripts/gen-dependencies.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.0