- fix building the target-compiler by passing the correct HOSTCC in.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 22 Dec 2006 11:43:06 +0000 (11:43 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 22 Dec 2006 11:43:06 +0000 (11:43 -0000)
toolchain/gcc/gcc-uclibc-3.x.mk

index 0b63bb3425ff87447260055884221561f3e058cb..913395b321d231e8e0b295c6fa37295962d5bff5 100644 (file)
@@ -292,9 +292,14 @@ gcc-dirclean: gcc_initial-dirclean
 #############################################################
 GCC_BUILD_DIR3:=$(BUILD_DIR)/gcc-$(GCC_VERSION)-target
 
-$(GCC_BUILD_DIR3)/.configured: $(GCC_BUILD_DIR2)/.installed
+$(GCC_BUILD_DIR3)/.prepared: $(GCC_BUILD_DIR2)/.installed $(TARGET_PREREQ)
        mkdir -p $(GCC_BUILD_DIR3)
-       (cd $(GCC_BUILD_DIR3); PATH=$(TARGET_PATH) \
+       touch $@
+
+$(GCC_BUILD_DIR3)/.configured: $(GCC_BUILD_DIR3)/.prepared
+       (cd $(GCC_BUILD_DIR3); rm -rf config.cache ; \
+               PATH=$(TARGET_PATH) \
+               CC_FOR_BUILD="$(HOSTCC)" \
                $(GCC_DIR)/configure \
                --prefix=/usr \
                --build=$(GNU_HOST_NAME) \