From 4caec176f176145c4eed1292c3539a5f677f3a17 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 13 Mar 2010 19:08:31 +0000 Subject: [PATCH] chroot creation script should handle statically linked binaries. git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@534 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- dgl-create-chroot | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 }