Skip to content

Commit 9355330

Browse files
committed
auto merge of #7094 : yichoi/rust/arm_jemalloc, r=thestinger
rt.mk : in case of arm, add --disable-tls at jemalloc configure (to solve SEGV)
2 parents 4ec08d8 + 00ff170 commit 9355330

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

mk/rt.mk

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,17 @@ $$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS)
210210
V=$$(VERBOSE)
211211
endif
212212

213+
ifeq ($(OSTYPE_$(1)), linux-androideabi)
214+
$$(JEMALLOC_LIB_$(1)_$(2)):
215+
cd $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc; $(S)src/rt/jemalloc/configure \
216+
--disable-experimental --build=$(CFG_BUILD_TRIPLE) --host=$(1) --disable-tls \
217+
EXTRA_CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
218+
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1)))" \
219+
CC="$$(CC_$(1))" \
220+
CXX="$$(CXX_$(1))" \
221+
AR="$$(AR_$(1))"
222+
$$(Q)$$(MAKE) -C $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc
223+
else
213224
$$(JEMALLOC_LIB_$(1)_$(2)):
214225
cd $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc; $(S)src/rt/jemalloc/configure \
215226
--disable-experimental --build=$(CFG_BUILD_TRIPLE) --host=$(1) \
@@ -219,6 +230,7 @@ $$(JEMALLOC_LIB_$(1)_$(2)):
219230
CXX="$$(CXX_$(1))" \
220231
AR="$$(AR_$(1))"
221232
$$(Q)$$(MAKE) -C $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc
233+
endif
222234

223235

224236
# These could go in rt.mk or rustllvm.mk, they're needed for both.

0 commit comments

Comments
 (0)