summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-09-04 03:32:17 +0000
committerEric Andersen <andersen@codepoet.org>2003-09-04 03:32:17 +0000
commita9ade645c665ca1faf53937f63e30bcba2748f50 (patch)
tree060221147cc4dadbc2145ffa76ff224a80a976c9
parent4e335944d7ea1557c2f8f7ddcc162f42814bf261 (diff)
downloadbuildroot-novena-a9ade645c665ca1faf53937f63e30bcba2748f50.tar.gz
buildroot-novena-a9ade645c665ca1faf53937f63e30bcba2748f50.zip
Set CC_FOR_HOST
-rw-r--r--make/uclibc_toolchain.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/make/uclibc_toolchain.mk b/make/uclibc_toolchain.mk
index a69e5e313..076e689ca 100644
--- a/make/uclibc_toolchain.mk
+++ b/make/uclibc_toolchain.mk
@@ -132,6 +132,8 @@ $(BINUTILS_DIR)/.patched: $(BINUTILS_DIR)/.unpacked
$(BINUTILS_DIR1)/.configured: $(BINUTILS_DIR)/.patched
mkdir -p $(BINUTILS_DIR1)
(cd $(BINUTILS_DIR1); CC=$(HOSTCC) \
+ CC_FOR_HOST=$(HOSTCC) \
+ CXX_FOR_HOST=$(HOSTCC) \
$(BINUTILS_DIR)/configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_HOST_NAME) \
@@ -155,10 +157,14 @@ $(BINUTILS_DIR1)/.configured: $(BINUTILS_DIR)/.patched
touch $(BINUTILS_DIR1)/.configured
$(BINUTILS_DIR1)/binutils/objdump: $(BINUTILS_DIR1)/.configured
- $(MAKE) -C $(BINUTILS_DIR1);
+ $(MAKE) CC_FOR_HOST=$(HOSTCC) \
+ CXX_FOR_HOST=$(HOSTCC) \
+ -C $(BINUTILS_DIR1);
$(STAGING_DIR)/$(GNU_TARGET_NAME)/bin/ld: $(BINUTILS_DIR1)/binutils/objdump
- $(MAKE) -C $(BINUTILS_DIR1) install
+ $(MAKE) CC_FOR_HOST=$(HOSTCC) \
+ CXX_FOR_HOST=$(HOSTCC) \
+ -C $(BINUTILS_DIR1) install;
rm -rf $(STAGING_DIR)/info $(STAGING_DIR)/man $(STAGING_DIR)/share/doc \
$(STAGING_DIR)/share/locale
mkdir -p $(STAGING_DIR)/usr/bin;