don't ever cause core dumps
[platform/upstream/rpm.git] / autodeps / linux.req
1 #!/bin/bash
2
3 # note this works for both a.out and ELF executables
4
5 ulimit -c 0
6
7 filelist=$(xargs file 2>/dev/null | grep "executable" | cut -d: -f1)
8
9 for f in $filelist; do
10     ldd $f | grep '=>' | awk '{ print $1 }'
11 done | sort -u | xargs -r -n 1 basename | sort -u