From: Bernhard Reutner-Fischer Date: Wed, 13 Dec 2006 23:18:02 +0000 (-0000) Subject: - Pass the correct compiler when building the target binutils. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7fb0f70a5ae85a1afb84657376cd44788a8e97ff;p=buildroot.git - Pass the correct compiler when building the target binutils. --- diff --git a/toolchain/binutils/binutils.mk b/toolchain/binutils/binutils.mk index 590935fa89..29445ceb6f 100644 --- a/toolchain/binutils/binutils.mk +++ b/toolchain/binutils/binutils.mk @@ -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" \