summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-22 11:43:06 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-22 11:43:06 +0000
commit1c0bd351ad7849760288b79f7215a4a47f84fdd5 (patch)
treeb3adfb4ff68e63927c736afb06aa78fb2a457af8
parentfbbea808f595271a2dec949912d3964f0bd716fb (diff)
downloadbuildroot-novena-1c0bd351ad7849760288b79f7215a4a47f84fdd5.tar.gz
buildroot-novena-1c0bd351ad7849760288b79f7215a4a47f84fdd5.zip
- fix building the target-compiler by passing the correct HOSTCC in.
-rw-r--r--toolchain/gcc/gcc-uclibc-3.x.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/toolchain/gcc/gcc-uclibc-3.x.mk b/toolchain/gcc/gcc-uclibc-3.x.mk
index 0b63bb342..913395b32 100644
--- a/toolchain/gcc/gcc-uclibc-3.x.mk
+++ b/toolchain/gcc/gcc-uclibc-3.x.mk
@@ -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) \