aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-09-29 20:10:42 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-09-29 20:10:42 +0000
commit8eabf4789e40f7c938adbd5958ee187888f22f93 (patch)
treef8ac51ba9c6f3f557b68928ff38124138e503e48 /scripts
parent9d4b0c659389cc6243fe1d52f347a0d63fe462cf (diff)
downloadupstream-8eabf4789e40f7c938adbd5958ee187888f22f93.tar.gz
upstream-8eabf4789e40f7c938adbd5958ee187888f22f93.tar.bz2
upstream-8eabf4789e40f7c938adbd5958ee187888f22f93.zip
scripts/gen-dependencies.sh: use the cross readelf (#12940)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38259 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-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 de8d67376e..889255a167 100755
--- a/scripts/gen-dependencies.sh
+++ b/scripts/gen-dependencies.sh
@@ -20,7 +20,7 @@ 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