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:
parent
7893e23435
commit
a72d3c1af5
@ -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="
|
||||
|
Loading…
Reference in New Issue
Block a user