some modification on instpkg
[cmdllinux.git] / scripts / _check_lib_deps_ldd
blob7e596ee21836d2668f5ec7941dd88934c47717de
1 #! /bin/bash
3 if [ ! -z "$1" ]; then
4 DIR=$1
5 [ ! -d "$DIR" ] && echo "No such directory" && exit 1
6 cd $DIR
7 fi
9 _findbin | \
10 while read file; do
11 ldd "$file" 2> /dev/null | grep -q "not found" && echo "$file" && ldd "$file"
12 done