mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 23:01:04 +08:00
Problem: Android helpers no not validate dependent libraries.
Seen in the code: ``` function android_build_verify_so { ... for dep_soname do if [[ $elfoutput != *"library: [${dep_soname}]"* ]]; then ANDROID_BUILD_FAIL+=("Library ${soname} was expected to be linked to library with soname:") ANDROID_BUILD_FAIL+=(" ${dep_soname}") fi done ``` The `for xxx` syntax is wrong, most probably a typo somewhere. Solution: Fix & complete the `for xxx` loop. Tested with & without LIBSODIUM (only available dependent library for LIBZMQ). Note: The same has to be done in ZPROJECT, for CZMQ & ZYRE.
This commit is contained in:
parent
e15fb044ef
commit
8b8fb6d80e
@ -320,8 +320,12 @@ function android_build_verify_so {
|
||||
ANDROID_BUILD_FAIL+=(" ${elfoutput}")
|
||||
fi
|
||||
|
||||
for dep_soname do
|
||||
if [[ $elfoutput != *"library: [${dep_soname}]"* ]]; then
|
||||
for dep_soname in "$@" ; do
|
||||
local dep_sofile="${ANDROID_BUILD_PREFIX}/lib/${dep_soname}"
|
||||
if [ ! -f "${dep_sofile}" ]; then
|
||||
ANDROID_BUILD_FAIL+=("Found no library named ${dep_soname}")
|
||||
ANDROID_BUILD_FAIL+=(" ${dep_sofile}")
|
||||
elif [[ $elfoutput != *"library: [${dep_soname}]"* ]]; then
|
||||
ANDROID_BUILD_FAIL+=("Library ${soname} was expected to be linked to library with soname:")
|
||||
ANDROID_BUILD_FAIL+=(" ${dep_soname}")
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user