- Pass the correct compiler when building the target binutils.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 13 Dec 2006 23:18:02 +0000 (23:18 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 13 Dec 2006 23:18:02 +0000 (23:18 -0000)
toolchain/binutils/binutils.mk

index 590935fa894675bc3c8401ce788787daa74562f1..29445ceb6f05b046a57a9c67403c702bedc99596 100644 (file)
@@ -101,6 +101,7 @@ BINUTILS_DIR2:=$(BUILD_DIR)/binutils-$(BINUTILS_VERSION)-target
 $(BINUTILS_DIR2)/.configured: $(BINUTILS_DIR)/.patched
        mkdir -p $(BINUTILS_DIR2)
        (cd $(BINUTILS_DIR2); \
+               CC_FOR_BUILD="$(HOSTCC)" \
                PATH=$(TARGET_PATH) \
                CFLAGS="$(TARGET_CFLAGS)" \
                CFLAGS_FOR_BUILD="-O2 -g" \