Ignore errors when ldd'ing static binaries.

When trying to get the library dependencies from a static program
it fails and die.
This scapes the error and continue with the execution.

Change-Id: Id3463f2dd77a182ce4f9d9d28165d35f17806892
This commit is contained in:
Ghe Rivero 2013-05-08 14:13:38 +02:00
parent 7893e23435
commit a72d3c1af5

View File

@ -92,8 +92,11 @@ EOF
}
function copy_required_libs() {
set +e
ldd_out=`ldd "$1"`
if [ $? -ne 0 ]; then
local ret_code=$?
set -e
if [ $ret_code -ne 0 ]; then
return
fi
local IFS="