diff options
| author | Po Lu | 2023-03-04 13:38:00 +0800 |
|---|---|---|
| committer | Po Lu | 2023-03-04 13:38:00 +0800 |
| commit | 39a7e6b79fdeafc539a36f6831d922a2622cb679 (patch) | |
| tree | c941a2c72df15bcbbd6d3a37b8b0ae3bd341244d /java | |
| parent | 798003b04f6e2ce358c2d801684b0bfbf54eaeaa (diff) | |
| download | emacs-39a7e6b79fdeafc539a36f6831d922a2622cb679.tar.gz emacs-39a7e6b79fdeafc539a36f6831d922a2622cb679.zip | |
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.
Diffstat (limited to 'java')
| -rw-r--r-- | java/INSTALL | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/java/INSTALL b/java/INSTALL index b331d09d9ff..37f7048b89d 100644 --- a/java/INSTALL +++ b/java/INSTALL | |||
| @@ -129,6 +129,15 @@ so: | |||
| 129 | 129 | ||
| 130 | ./configure --with-ndk-cxx=/path/to/toolchain/bin/i686-linux-android-g++ | 130 | ./configure --with-ndk-cxx=/path/to/toolchain/bin/i686-linux-android-g++ |
| 131 | 131 | ||
| 132 | Some versions of the NDK have a bug, where GCC fails to locate | ||
| 133 | ``stddef.h'' after being copied to a standalone toolchain. To work | ||
| 134 | around this problem (which normally exhibits itself when building C++ | ||
| 135 | code), add: | ||
| 136 | |||
| 137 | -isystem /path/to/toolchain/include/c++/4.9.x | ||
| 138 | |||
| 139 | to ANDROID_CFLAGS. | ||
| 140 | |||
| 132 | 141 | ||
| 133 | DEBUG AND RELEASE BUILDS | 142 | DEBUG AND RELEASE BUILDS |
| 134 | 143 | ||