Browse Source

- pass target specific settings to configure when configuring for the target.

Bernhard Reutner-Fischer 18 years ago
parent
commit
66eb4c38a1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      package/gmp/gmp.mk

+ 2 - 0
package/gmp/gmp.mk

@@ -31,6 +31,8 @@ $(GMP_DIR)/.unpacked: $(DL_DIR)/$(GMP_SOURCE)
 $(GMP_DIR)/.configured: $(GMP_DIR)/.unpacked
 	(cd $(GMP_DIR); rm -rf config.cache; \
 		$(TARGET_CONFIGURE_OPTS) \
+		CC_FOR_BUILD="$(HOSTCC)" \
+		CFLAGS="$(TARGET_CFLAGS)" \
 		ac_cv_c_bigendian=$(GMP_BE) \
 		./configure \
 		--host=$(REAL_GNU_TARGET_NAME) \