From: Pasi Kallinen Date: Sat, 13 Mar 2010 19:08:31 +0000 (+0000) Subject: chroot creation script should handle statically linked binaries. X-Git-Tag: v1.6.1-roc-dev~175 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=4caec176f176145c4eed1292c3539a5f677f3a17;p=dgamelaunch chroot creation script should handle statically linked binaries. git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@534 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- diff --git a/dgl-create-chroot b/dgl-create-chroot index 2e7f279..cdefea6 100755 --- a/dgl-create-chroot +++ b/dgl-create-chroot @@ -39,8 +39,10 @@ errorexit() findlibs() { for i in "$@"; do - echo $(ldd "$i" | awk '{ print $3 }' | egrep -v ^'\(') - echo $(ldd "$i" | grep 'ld-linux' | awk '{ print $1 }') + if [ -z "`ldd "$i" | grep 'not a dynamic executable'`" ]; then + echo $(ldd "$i" | awk '{ print $3 }' | egrep -v ^'\(') + echo $(ldd "$i" | grep 'ld-linux' | awk '{ print $1 }') + fi done }