Be extra careful about the target utils
authorEric Andersen <andersen@codepoet.org>
Wed, 8 Jan 2003 21:34:59 +0000 (21:34 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 8 Jan 2003 21:34:59 +0000 (21:34 -0000)
make/gcc_target.mk

index ff2da63c4520f53fa8d4bc9d0191ac457a5774fb..f02b7b92f87a2033b7d8bfe833019b01e98af841 100644 (file)
@@ -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