README
1There are configure scripts in this directory to generate the header files
2used by the jemalloc library.
3
4These scripts are named conf_<HOST_TYPE>.sh, where HOST_TYPE is one of
5aarch64, arm, mips, x86, x86_64.
6
7In order to build generate the header files for each supported HOST_TYPE,
8follow these steps:
9
10- source build/envsetup.sh
11- lunch <TARGET>
12- mmma -jXX bionic
13- cd external/jemalloc
14- autoconf
15- <Modify the configure script>
16- android/conf_<HOST_TYPE>.sh
17
18Follow these instructions to modify the configure script before running
19any of the conf_<HOST_TYPE>.sh scripts.
20
21In the code that looks similar to this:
22
23case "${host}" in
24 *-*-darwin*)
25
26Modify it to be:
27
28case "${host}" in
29 *android*)
30 CFLAGS="$CFLAGS"
31 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
32 abi="elf"
33 force_tls="0"
34 enable_tls="0"
35 $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
36
37 $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED " >>confdefs.h
38
39 $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h
40 ;;
41 *-*-darwin*)
42