Skip to content

Commit 828d6ea

Browse files
authored
Merge pull request #4098 from agnosy/problem/android-build-failure
Problem: Android build fails.
2 parents 1533bc3 + 89a536d commit 828d6ea

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

builds/android/android_build_helper.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,15 @@ function android_build_verify_so {
267267
fi
268268
android_build_check_fail
269269

270-
if command -v readelf >/dev/null 2>&1 ; then
270+
local READELF="${TOOLCHAIN_PATH}/${TOOLCHAIN_HOST}-readelf"
271+
if command -v ${READELF} >/dev/null 2>&1 ; then
272+
local readelf_bin="${READELF}"
273+
elif command -v readelf >/dev/null 2>&1 ; then
271274
local readelf_bin="readelf"
272275
elif command -v greadelf >/dev/null 2>&1 ; then
273276
local readelf_bin="greadelf"
274277
else
275-
ANDROID_BUILD_FAIL+=("Could not find [g]readelf")
278+
ANDROID_BUILD_FAIL+=("Could not find any of readelf, greadelf, or ${READELF}")
276279
fi
277280
android_build_check_fail
278281

0 commit comments

Comments
 (0)