summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-09-03 23:05:45 +0000
committerEric Andersen <andersen@codepoet.org>2003-09-03 23:05:45 +0000
commit4e335944d7ea1557c2f8f7ddcc162f42814bf261 (patch)
tree5b68e0ee10dbcd993ce71c1a58d28460b118ed2a
parent5c131461453559a992f379526685aaf013e59068 (diff)
downloadbuildroot-novena-4e335944d7ea1557c2f8f7ddcc162f42814bf261.tar.gz
buildroot-novena-4e335944d7ea1557c2f8f7ddcc162f42814bf261.zip
Make sure cross building binutils works
-rw-r--r--make/gcc_target.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/make/gcc_target.mk b/make/gcc_target.mk
index 3377b6645..a3973a8d0 100644
--- a/make/gcc_target.mk
+++ b/make/gcc_target.mk
@@ -90,6 +90,8 @@ $(BINUTILS_DIR2)/.configured: $(BINUTILS_DIR2_DEPENDS)
mkdir -p $(TARGET_DIR)/usr/$(GNU_TARGET_NAME)/
(cd $(BINUTILS_DIR2); ln -fs $(ARCH)-linux build-$(GNU_TARGET_NAME))
(cd $(BINUTILS_DIR2); $(TARGET_CONFIGURE_OPTS) \
+ CC_FOR_HOST=$(HOSTCC) \
+ CXX_FOR_HOST=$(HOSTCC) \
CC_FOR_BUILD=$(TARGET_CROSS)gcc \
CXX_FOR_BUILD=$(TARGET_CROSS)g++ \
AR_FOR_TARGET=$(TARGET_CROSS)ar \
@@ -123,6 +125,8 @@ $(BINUTILS_DIR2)/.configured: $(BINUTILS_DIR2_DEPENDS)
$(BINUTILS_DIR2)/binutils/objdump: $(BINUTILS_DIR2)/.configured
$(MAKE) -C $(BINUTILS_DIR2) \
$(TARGET_CONFIGURE_OPTS) \
+ CC_FOR_HOST=$(HOSTCC) \
+ CXX_FOR_HOST=$(HOSTCC) \
CC_FOR_BUILD=$(TARGET_CROSS)gcc \
CXX_FOR_BUILD=$(TARGET_CROSS)g++ \
AR_FOR_TARGET=$(TARGET_CROSS)ar \
@@ -138,6 +142,8 @@ $(BINUTILS_DIR2)/binutils/objdump: $(BINUTILS_DIR2)/.configured
$(TARGET_DIR)/usr/bin/ld: $(BINUTILS_DIR2)/binutils/objdump
$(MAKE) -C $(BINUTILS_DIR2) \
$(TARGET_CONFIGURE_OPTS) \
+ CC_FOR_HOST=$(HOSTCC) \
+ CXX_FOR_HOST=$(HOSTCC) \
CC_FOR_BUILD=$(TARGET_CROSS)gcc \
CXX_FOR_BUILD=$(TARGET_CROSS)g++ \
AR_FOR_TARGET=$(TARGET_CROSS)ar \