summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/gmphost.mk8
-rw-r--r--mk/mpfrhost.mk4
2 files changed, 8 insertions, 4 deletions
diff --git a/mk/gmphost.mk b/mk/gmphost.mk
index 2ce8cd1..2ef7930 100644
--- a/mk/gmphost.mk
+++ b/mk/gmphost.mk
@@ -47,8 +47,10 @@ $(GMP_HOST_BUILD_DIR)/.decompressed:
@touch $@
$(GMP_HOST_BUILD_DIR)/.configured:
+ $(call EMBTK_GENERIC_MESSAGE,"gmphost: Configuring gmp-$(GMP_HOST_VERSION) ...")
@mkdir -p $(GMP_HOST_DIR)
- @cd $(GMP_HOST_BUILD_DIR); $(TOOLS_BUILD)/gmp-$(GMP_HOST_VERSION)/configure \
- --prefix=$(GMP_HOST_DIR) --disable-shared --enable-static \
- --build=$(HOST_BUILD) --host=$(HOST_ARCH)
+ cd $(GMP_HOST_BUILD_DIR); CC=$(HOSTCC_CACHED) CXX=$(HOSTCXX_CACHED) \
+ $(TOOLS_BUILD)/gmp-$(GMP_HOST_VERSION)/configure \
+ --prefix=$(GMP_HOST_DIR) --disable-shared --enable-static \
+ --build=$(HOST_BUILD) --host=$(HOST_ARCH)
@touch $@
diff --git a/mk/mpfrhost.mk b/mk/mpfrhost.mk
index 54aed51..2680454 100644
--- a/mk/mpfrhost.mk
+++ b/mk/mpfrhost.mk
@@ -56,8 +56,10 @@ ifeq ($(CONFIG_EMBTK_MPFR_HOST_VERSION_PATCH),y)
endif
$(MPFR_HOST_BUILD_DIR)/.configured:
+ $(call EMBTK_GENERIC_MESSAGE,"mpfrhost: Configuring mpfr-$(MPFR_HOST_VERSION) ...")
@mkdir -p $(MPFR_HOST_DIR)
- @cd $(MPFR_HOST_BUILD_DIR); $(TOOLS_BUILD)/mpfr-$(MPFR_HOST_VERSION)/configure \
+ cd $(MPFR_HOST_BUILD_DIR); CC=$(HOSTCC_CACHED) CXX=$(HOSTCXX_CACHED) \
+ $(TOOLS_BUILD)/mpfr-$(MPFR_HOST_VERSION)/configure \
--prefix=$(MPFR_HOST_DIR) --disable-shared --enable-static --with-gmp=$(GMP_HOST_DIR) \
--build=$(HOST_BUILD) --host=$(HOST_ARCH)
@touch $@