diff --git a/autodeps/linux.req b/autodeps/linux.req new file mode 100644 index 000000000..2b28a8655 --- /dev/null +++ b/autodeps/linux.req @@ -0,0 +1,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