- pass target specific settings to configure when configuring for the target.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 2 Dec 2006 18:32:33 +0000 (18:32 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 2 Dec 2006 18:32:33 +0000 (18:32 -0000)
package/gmp/gmp.mk

index 21e1433e872b82b1f2ffc7efdba34d43d7614535..3da378e175f82eb8ca7cf38fdc9a1db0adc5f911 100644 (file)
@@ -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) \