1 There are configure scripts in this directory to generate the header files 2 used by the jemalloc library. 3 4 These scripts are named conf_<HOST_TYPE>.sh, where HOST_TYPE is one of 5 aarch64, arm, mips, x86, x86_64. 6 7 In order to build generate the header files for each supported HOST_TYPE, 8 follow 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 18 Follow these instructions to modify the configure script before running 19 any of the conf_<HOST_TYPE>.sh scripts. 20 21 In the code that looks similar to this: 22 23 case "${host}" in 24 *-*-darwin*) 25 26 Modify it to be: 27 28 case "${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