summaryrefslogtreecommitdiffstats
path: root/make/gcc-3.3.mk
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-09-30 05:23:18 +0000
committerEric Andersen <andersen@codepoet.org>2003-09-30 05:23:18 +0000
commitc2ea490757f342de04a7806e7f68753ae2566f4b (patch)
tree611b1e292916168dd05d336d56ab8ec102a84302 /make/gcc-3.3.mk
parent626312a2784cb573f0a69938f898dd38303fca46 (diff)
downloadbuildroot-novena-c2ea490757f342de04a7806e7f68753ae2566f4b.tar.gz
buildroot-novena-c2ea490757f342de04a7806e7f68753ae2566f4b.zip
With this, buildroot builds w/o needing the magic symlink,
and properly cross compiles. Wohoo, time to ship... -Erik
Diffstat (limited to 'make/gcc-3.3.mk')
-rw-r--r--make/gcc-3.3.mk29
1 files changed, 25 insertions, 4 deletions
diff --git a/make/gcc-3.3.mk b/make/gcc-3.3.mk
index 8cfb17311..4877460b4 100644
--- a/make/gcc-3.3.mk
+++ b/make/gcc-3.3.mk
@@ -297,9 +297,15 @@ $(GCC_BUILD_DIR3)/.configured: $(GCC_BUILD_DIR3)/.gcc3_3_build_hacks
mkdir -p $(GCC_BUILD_DIR3)
(cd $(GCC_BUILD_DIR3); ln -fs $(ARCH)-linux build-$(GNU_TARGET_NAME))
(cd $(GCC_BUILD_DIR3); \
- $(TARGET_CONFIGURE_OPTS) \
+ AR_FOR_BUILD=ar \
+ AS_FOR_BUILD=as \
+ LD_FOR_BUILD=ld \
+ NM_FOR_BUILD=nm \
+ CXX_FOR_BUILD=g++ \
+ RANLIB_FOR_BUILD=ranlib \
+ HOST_CC=$(HOSTCC) \
CC_FOR_BUILD=$(HOSTCC) \
- CXX_FOR_BUILD=$(HOSTCC) \
+ GCC_FOR_BUILD=$(HOSTCC) \
AR_FOR_TARGET=$(TARGET_CROSS)ar \
AS_FOR_TARGET=$(TARGET_CROSS)as \
LD_FOR_TARGET=$(TARGET_CROSS)ld \
@@ -340,8 +346,15 @@ $(GCC_BUILD_DIR3)/.configured: $(GCC_BUILD_DIR3)/.gcc3_3_build_hacks
$(GCC_BUILD_DIR3)/.compiled: $(GCC_BUILD_DIR3)/.configured
$(MAKE) -C $(GCC_BUILD_DIR3) \
+ AR_FOR_BUILD=ar \
+ AS_FOR_BUILD=as \
+ LD_FOR_BUILD=ld \
+ NM_FOR_BUILD=nm \
+ CXX_FOR_BUILD=g++ \
+ RANLIB_FOR_BUILD=ranlib \
+ HOST_CC=$(HOSTCC) \
CC_FOR_BUILD=$(HOSTCC) \
- CXX_FOR_BUILD=$(HOSTCC) \
+ GCC_FOR_BUILD=$(HOSTCC) \
AR_FOR_TARGET=$(TARGET_CROSS)ar \
AS_FOR_TARGET=$(TARGET_CROSS)as \
LD_FOR_TARGET=$(TARGET_CROSS)ld \
@@ -354,8 +367,16 @@ $(GCC_BUILD_DIR3)/.compiled: $(GCC_BUILD_DIR3)/.configured
$(TARGET_DIR)/usr/bin/gcc: $(GCC_BUILD_DIR3)/.compiled
$(MAKE) -C $(GCC_BUILD_DIR3) \
+ AR_FOR_BUILD=ar \
+ AS_FOR_BUILD=as \
+ LD_FOR_BUILD=ld \
+ NM_FOR_BUILD=nm \
+ CXX_FOR_BUILD=g++ \
+ RANLIB_FOR_BUILD=ranlib \
+ HOST_CC=$(HOSTCC) \
+ GCC_FOR_BUILD=$(HOSTCC) \
CC_FOR_BUILD=$(HOSTCC) \
- CXX_FOR_BUILD=$(HOSTCC) \
+ GCC_FOR_BUILD=$(HOSTCC) \
AR_FOR_TARGET=$(TARGET_CROSS)ar \
AS_FOR_TARGET=$(TARGET_CROSS)as \
LD_FOR_TARGET=$(TARGET_CROSS)ld \