summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-01-08 21:34:59 +0000
committerEric Andersen <andersen@codepoet.org>2003-01-08 21:34:59 +0000
commit529820d7cdf541205d5a52ca982c1acd09c1273a (patch)
treed7db18db4aad37bd4d0e51b0a92668180a899189 /make
parente4ee6a76ce885374fb34c7074a548917f9c8c296 (diff)
Be extra careful about the target utils
Diffstat (limited to 'make')
-rw-r--r--make/gcc_target.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/make/gcc_target.mk b/make/gcc_target.mk
index ff2da63c4..f02b7b92f 100644
--- a/make/gcc_target.mk
+++ b/make/gcc_target.mk
@@ -72,7 +72,9 @@ $(BINUTILS_DIR2)/.configured:
touch $(BINUTILS_DIR2)/.configured
$(BINUTILS_DIR2)/binutils/objdump: $(BINUTILS_DIR2)/.configured
- $(MAKE) -C $(BINUTILS_DIR2);
+ PATH=$(STAGING_DIR)/bin:$$PATH $(MAKE) AR=$(TARGET_CROSS)ar \
+ RANLIB=$(TARGET_CROSS)ranlib LD=$(TARGET_CROSS)ld \
+ CC=$(TARGET_CROSS)gcc -C $(BINUTILS_DIR2)
$(TARGET_DIR)/usr/bin/ld: $(BINUTILS_DIR2)/binutils/objdump
PATH=$(STAGING_DIR)/bin:$$PATH $(MAKE) \
@@ -187,7 +189,9 @@ $(GCC_BUILD_DIR3)/.configured: $(GCC_BUILD_DIR3)/.gcc_build_hacks
touch $(GCC_BUILD_DIR3)/.configured
$(GCC_BUILD_DIR3)/.compiled: $(GCC_BUILD_DIR3)/.configured
- PATH=$(STAGING_DIR)/bin:$$PATH $(MAKE) -C $(GCC_BUILD_DIR3)
+ PATH=$(STAGING_DIR)/bin:$$PATH $(MAKE) AR=$(TARGET_CROSS)ar \
+ RANLIB=$(TARGET_CROSS)ranlib LD=$(TARGET_CROSS)ld \
+ CC=$(TARGET_CROSS)gcc -C $(GCC_BUILD_DIR3)
touch $(GCC_BUILD_DIR3)/.compiled
$(TARGET_DIR)/usr/bin/gcc: $(GCC_BUILD_DIR3)/.compiled