summaryrefslogtreecommitdiffstats
path: root/make/gcc_target.mk
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-14 09:06:52 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-14 09:06:52 +0000
commita5d910833e66d5810fd869dc27bd7a638ea525fe (patch)
tree486573d1c899a73e71d4198c6a25164e3b0f5d82 /make/gcc_target.mk
parent1800964779bf27a3bfda7301acb5824918b94b0c (diff)
downloadbuildroot-novena-a5d910833e66d5810fd869dc27bd7a638ea525fe.tar.gz
buildroot-novena-a5d910833e66d5810fd869dc27bd7a638ea525fe.zip
Fixup gcc-target so it actually works...
Diffstat (limited to 'make/gcc_target.mk')
-rw-r--r--make/gcc_target.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/make/gcc_target.mk b/make/gcc_target.mk
index 1d8c9fbd5..48030efa6 100644
--- a/make/gcc_target.mk
+++ b/make/gcc_target.mk
@@ -44,6 +44,11 @@ GCC_BUILD_DIR3:=$(BUILD_DIR)/gcc-target
#############################################################
$(BINUTILS_DIR2)/.configured:
mkdir -p $(BINUTILS_DIR2)
+ mkdir -p $(TARGET_DIR)/usr/include
+ mkdir -p $(TARGET_DIR)/usr/$(GNU_TARGET_NAME)/
+ #(cd $(TARGET_DIR)/usr/$(GNU_TARGET_NAME); ln -fs ../lib)
+ #(cd $(TARGET_DIR)/usr/$(GNU_TARGET_NAME); ln -fs ../include)
+ (cd $(TARGET_DIR)/usr/$(GNU_TARGET_NAME); ln -fs ../include sys-include)
(cd $(BINUTILS_DIR2); PATH=$$PATH:$(STAGING_DIR)/bin CC=$(TARGET_CROSS)gcc \
$(BINUTILS_DIR)/configure --enable-shared \
--target=$(GNU_TARGET_NAME) --prefix=/usr \
@@ -106,9 +111,12 @@ $(GCC_BUILD_DIR3)/.configured:
(cd $(GCC_BUILD_DIR3); PATH=$$PATH:$(STAGING_DIR)/bin AR=$(TARGET_CROSS)ar \
RANLIB=$(TARGET_CROSS)ranlib LD=$(TARGET_CROSS)ld CC=$(TARGET_CROSS)gcc \
$(GCC_DIR)/configure \
- --target=$(GNU_TARGET_NAME) --prefix=/usr --includedir=$(STAGING_DIR) \
+ --host=$(GNU_TARGET_NAME) --target=$(GNU_TARGET_NAME) --prefix=/usr \
+ --with-local-prefix=$(STAGING_DIR)/usr \
--enable-target-optspace --disable-nls --with-gnu-ld \
--enable-shared --enable-languages=c,c++ );
+ perl -i -p -e "s,ac_cv_prog_cc_cross=no,ac_cv_prog_cc_cross=yes,g;" $(GCC_BUILD_DIR3)/config.cache
+ perl -i -p -e "s,^build_tooldir=no,ac_cv_prog_cc_cross=yes,g;" $(GCC_BUILD_DIR3)/config.cache
touch $(GCC_BUILD_DIR3)/.configured
$(GCC_BUILD_DIR3)/.compiled: $(GCC_BUILD_DIR3)/.configured