Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit ebc185e

Browse files
committed
[[ Prebuilts ]] Disable U_HAVE_STRTOD_L when building ICU
This patch ensures that the `U_HAVE_STRTOD_L` is defined to be zero when compiling the ICU prebuilt on Android. The automake process for ICU 58.2 appears to incorrectly detect whether this function is available when using >= API 21 NDK toolchains, causing a compile error.
1 parent 56e36ef commit ebc185e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

prebuilt/scripts/build-icu.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ function buildICU {
151151
;;
152152
esac
153153

154+
# Make sure U_HAVE_STRTOD_L is 0 on android
155+
if [ "${PLATFORM}" == "android" ] ; then
156+
sed -i -e "s/U_HAVE_STRTOD_L=1/U_HAVE_STRTOD_L=0/" icudefs.mk
157+
fi
158+
154159
echo "Building ICU for ${NAME}"
155160
export VERBOSE=1
156161
${EMMAKE} make clean && \

0 commit comments

Comments
 (0)