about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-06-07 17:24:25 -0400
committerDaniel Micay <danielmicay@gmail.com>2013-06-07 18:27:15 -0400
commita593d8f67cf2011eed81f746a2c2cedebe66a23c (patch)
tree7e86d1955f7aac46556e0e603c59097d757bf4d2
parentb8cf2f8056d29423430b723acd70e525d1249a32 (diff)
downloadrust-a593d8f67cf2011eed81f746a2c2cedebe66a23c.tar.gz
rust-a593d8f67cf2011eed81f746a2c2cedebe66a23c.zip
pass correct flags to jemalloc for cross-compiling
-rw-r--r--mk/rt.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/rt.mk b/mk/rt.mk
index a14e49a169c..f8fd16c04ec 100644
--- a/mk/rt.mk
+++ b/mk/rt.mk
@@ -211,7 +211,8 @@ $$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS)
 endif
 
 $$(JEMALLOC_LIB_$(1)_$(2)):
-	cd $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc; $(S)src/rt/jemalloc/configure --disable-experimental
+	cd $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc; $(S)src/rt/jemalloc/configure \
+		--disable-experimental --build=$(CFG_BUILD_TRIPLE) --host=$(1)
 	$$(Q)$$(MAKE) -C $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc
 
 # These could go in rt.mk or rustllvm.mk, they're needed for both.