aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-09-29 20:12:27 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-09-29 20:12:27 +0000
commitad19e3d3d4815b6071570df942fdbd59b7b45729 (patch)
tree2c24aa745da57e526dafa8d3f7e21c1b86ff7863
parent294eeb8c977464caa8f882e5f9e3aee9494228f8 (diff)
downloadupstream-ad19e3d3d4815b6071570df942fdbd59b7b45729.tar.gz
upstream-ad19e3d3d4815b6071570df942fdbd59b7b45729.tar.bz2
upstream-ad19e3d3d4815b6071570df942fdbd59b7b45729.zip
scripts/gen-dependencies.sh: use the cross readelf (#12940)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Backport of r38259 git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@38260 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xscripts/gen-dependencies.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen-dependencies.sh b/scripts/gen-dependencies.sh
index df8073ea33..02cffb20bc 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