blob: 2b28a8655dd854c0825a68fca26917396f836a04 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/bash
# note this works for both a.out and ELF executables
filelist=$(xargs file -L 2>/dev/null | grep "executable" | cut -d: -f1)
for f in $filelist; do
ldd $f | grep -v 'statically linked' | awk '{ print $1 }'
done | sort -u
|