From 39a7e6b79fdeafc539a36f6831d922a2622cb679 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 4 Mar 2023 13:38:00 +0800 Subject: Port to broken Android NDK version * configure.ac: Check for __ctype_get_mb_cur_max. Then see if MB_CUR_MAX is defined to it, and define REPLACEMENT_MB_CUR_MAX if so and it does not link. * java/INSTALL: Update documentation. * src/conf_post.h (MB_CUR_MAX): Define replacement if necessary. --- java/INSTALL | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'java') diff --git a/java/INSTALL b/java/INSTALL index b331d09d9ff..37f7048b89d 100644 --- a/java/INSTALL +++ b/java/INSTALL @@ -129,6 +129,15 @@ so: ./configure --with-ndk-cxx=/path/to/toolchain/bin/i686-linux-android-g++ +Some versions of the NDK have a bug, where GCC fails to locate +``stddef.h'' after being copied to a standalone toolchain. To work +around this problem (which normally exhibits itself when building C++ +code), add: + + -isystem /path/to/toolchain/include/c++/4.9.x + +to ANDROID_CFLAGS. + DEBUG AND RELEASE BUILDS -- cgit v1.2.1