summaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-13 23:18:02 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-13 23:18:02 +0000
commit7fb0f70a5ae85a1afb84657376cd44788a8e97ff (patch)
treec8804b4e3fa3d69072ff647f37113c53a5c94398 /toolchain
parent819ef8072b194fabbca9260268b299747b7b4fb1 (diff)
downloadbuildroot-novena-7fb0f70a5ae85a1afb84657376cd44788a8e97ff.tar.gz
buildroot-novena-7fb0f70a5ae85a1afb84657376cd44788a8e97ff.zip
- Pass the correct compiler when building the target binutils.
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/binutils/binutils.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/toolchain/binutils/binutils.mk b/toolchain/binutils/binutils.mk
index 590935fa8..29445ceb6 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" \