chroot creation script should handle statically linked binaries.

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@534 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Pasi Kallinen 2010-03-13 19:08:31 +00:00
parent 13c2d4ec3f
commit 4caec176f1
1 changed files with 4 additions and 2 deletions

View File

@ -39,8 +39,10 @@ errorexit()
findlibs() findlibs()
{ {
for i in "$@"; do for i in "$@"; do
echo $(ldd "$i" | awk '{ print $3 }' | egrep -v ^'\(') if [ -z "`ldd "$i" | grep 'not a dynamic executable'`" ]; then
echo $(ldd "$i" | grep 'ld-linux' | awk '{ print $1 }') echo $(ldd "$i" | awk '{ print $3 }' | egrep -v ^'\(')
echo $(ldd "$i" | grep 'ld-linux' | awk '{ print $1 }')
fi
done done
} }