Commit fdb66fbf authored by Thomas Guillem's avatar Thomas Guillem

build: hack toolchain only once

parent ab2cbc03
......@@ -307,14 +307,16 @@ then
exit 1
fi
# don't use the dummy uchar.c
cp ${ANDROID_NDK}/platforms/android-21/arch-${PLATFORM_SHORT_ARCH}/usr/include/uchar.h \
${NDK_TOOLCHAIN_DIR}/sysroot/usr/local/include
# Don't mess up nl_langinfo() detection since this symbol is not present for 64
# bits
if [ "${HAVE_64}" = 1 ];then
rm -f ${NDK_TOOLCHAIN_DIR}/sysroot/usr/local/include/langinfo.h
if [ ! -z "${NDK_FORCE_ARG}" ];then
# don't use the dummy uchar.c
cp ${ANDROID_NDK}/platforms/android-21/arch-${PLATFORM_SHORT_ARCH}/usr/include/uchar.h \
${NDK_TOOLCHAIN_DIR}/sysroot/usr/local/include
# Don't mess up nl_langinfo() detection since this symbol is not present for 64
# bits
if [ "${HAVE_64}" = 1 ];then
rm ${NDK_TOOLCHAIN_DIR}/sysroot/usr/local/include/langinfo.h
fi
fi
if [ ! -z "${NDK_FORCE_ARG}" ];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