File tree Expand file tree Collapse file tree 3 files changed +24
-3
lines changed Expand file tree Collapse file tree 3 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -147,10 +147,10 @@ rt/$(1)/stage$(2)/arch/$$(HOST_$(1))/libmorestack.a: $$(MORESTACK_OBJ_$(1)_$(2))
147147 $$(Q )$(AR_$(1 ) ) rcs $$@ $$<
148148
149149rt/$(1 ) /stage$(2 ) /$(CFG_RUNTIME_$(1 ) ) : $$(RUNTIME_OBJS_$(1 ) _$(2 ) ) $$(MKFILE_DEPS ) \
150- $$(RUNTIME_DEF_$(1 ) _$(2 ) ) $$(LIBUV_LIB_$(1 ) _$(2 ) )
150+ $$(RUNTIME_DEF_$(1 ) _$(2 ) ) $$(LIBUV_LIB_$(1 ) _$(2 ) ) $$( JEMALLOC_LIB_ $( 1 ) _ $( 2 ) )
151151 @$$(call E, link: $$@ )
152152 $$(Q )$$(call CFG_LINK_CXX_$(1 ) ,$$@ , $$(RUNTIME_OBJS_$(1 ) _$(2 ) ) \
153- $$(CFG_GCCISH_POST_LIB_FLAGS_$(1 ) ) $$(LIBUV_LIB_$(1 ) _$(2 ) ) \
153+ $$(JEMALLOC_LIB_ $( 1 ) _ $( 2 ) ) $$( CFG_GCCISH_POST_LIB_FLAGS_$(1 ) ) $$(LIBUV_LIB_$(1 ) _$(2 ) ) \
154154 $$(CFG_LIBUV_LINK_FLAGS_$(1 ) ) ,$$(RUNTIME_DEF_$(1 ) _$(2 ) ) ,$$(CFG_RUNTIME_$(1 ) ) )
155155
156156# FIXME: For some reason libuv's makefiles can't figure out the
Original file line number Diff line number Diff line change @@ -4479,6 +4479,18 @@ case "${host}" in
44794479
44804480 force_lazy_lock=" 1"
44814481 ;;
4482+ * -* -linux-android* )
4483+ CFLAGS=" $CFLAGS "
4484+ CPPFLAGS=" $CPPFLAGS -D_GNU_SOURCE"
4485+ abi=" elf"
4486+ $as_echo " #define JEMALLOC_HAS_ALLOCA_H 1" >> confdefs.h
4487+
4488+ $as_echo " #define JEMALLOC_PURGE_MADVISE_DONTNEED " >> confdefs.h
4489+
4490+ $as_echo " #define JEMALLOC_THREADED_INIT " >> confdefs.h
4491+
4492+ default_munmap=" 0"
4493+ ;;
44824494 * -* -linux* )
44834495 CFLAGS=" $CFLAGS "
44844496 CPPFLAGS=" $CPPFLAGS -D_GNU_SOURCE"
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ PIC_CFLAGS='-fPIC -DPIC'
226226CTARGET='-o $@'
227227LDTARGET='-o $@'
228228EXTRA_LDFLAGS=
229- MKLIB='ar crus $@'
229+ MKLIB='$(AR) crus $@'
230230CC_MM=1
231231
232232dnl Platform-specific settings. abi and RPATH can probably be determined
@@ -257,6 +257,15 @@ case "${host}" in
257257 AC_DEFINE ( [ JEMALLOC_PURGE_MADVISE_FREE] , [ ] )
258258 force_lazy_lock="1"
259259 ;;
260+ *-*-linux-android*)
261+ CFLAGS="$CFLAGS"
262+ CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
263+ abi="elf"
264+ AC_DEFINE ( [ JEMALLOC_HAS_ALLOCA_H] )
265+ AC_DEFINE ( [ JEMALLOC_PURGE_MADVISE_DONTNEED] , [ ] )
266+ AC_DEFINE ( [ JEMALLOC_THREADED_INIT] , [ ] )
267+ default_munmap="0"
268+ ;;
260269 *-*-linux*)
261270 CFLAGS="$CFLAGS"
262271 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
You can’t perform that action at this time.
0 commit comments