Commit 102d1b14 authored by Luca Boccassi's avatar Luca Boccassi

Check for [g]readelf availability in qt-android helper

readelf is not available on OSX, greadelf is available on homebrew
parent 57ef5935
......@@ -282,7 +282,16 @@ function android_build_verify_so {
fi
android_build_check_fail
local elfoutput=$(readelf -d ${sofile})
if command -v readelf >/dev/null 2>&1 ; then
local readelf_bin="readelf"
elif command -v greadelf >/dev/null 2>&1 ; then
local readelf_bin="greadelf"
else
ANDROID_BUILD_FAIL+=("Could not find [g]readelf")
fi
android_build_check_fail
local elfoutput=$($readelf_bin -d ${sofile})
local soname_regexp='soname: \[([[:alnum:]\.]+)\]'
if [[ $elfoutput =~ $soname_regexp ]]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment