summaryrefslogtreecommitdiff
path: root/toolchain/gcc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-05-29 13:13:17 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-05-29 13:13:17 +0200
commit7047a0b2b2d18d51594cad92d5356bd626da063d (patch)
tree7b89508846229d6b0c287a89094c5bf86cbe6800 /toolchain/gcc
parentbad63eb735b13e1f009a19af1dd810f7279c2ba1 (diff)
add lemote / loongson2f target support (no runtime tests yet)
- update glibc to latest version (GIT), tarball includes glibc-ports needed for MIPS architecture - fix building of toolchain for mips64el glibc/uclibc - use /lib instead of /lib64 (no biarch support) - fix X11 dependencies in build system - fix glibc build errors for openldap, libnl, mpd and rtorrent - verified toolchain changes on alix1c
Diffstat (limited to 'toolchain/gcc')
-rw-r--r--toolchain/gcc/Makefile7
-rw-r--r--toolchain/gcc/patches/no-lib64.patch11
2 files changed, 18 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index a85e4fa74..a0e972c3f 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -23,8 +23,10 @@ GCC_CONFOPTS= --prefix=$(STAGING_TOOLS) \
--disable-__cxa_atexit \
--enable-target-optspace \
--with-gnu-ld \
+ --without-headers \
--disable-libmudflap \
--disable-libgomp \
+ --disable-biarch \
--disable-multilib \
--disable-nls
@@ -38,6 +40,10 @@ ifeq ($(ADK_NO_FPU),y)
GCC_CONFOPTS+= --with-float=soft
endif
+ifeq ($(ADK_LINUX_MIPS64_LEMOTE),y)
+GCC_CONFOPTS+= --with-abi=64
+endif
+
include ${TOPDIR}/mk/buildhlp.mk
GCC_BUILD_DIR1:= $(WRKBUILD)-initial
@@ -74,6 +80,7 @@ $(GCC_BUILD_DIR2)/.configured:
${GCC_CONFOPTS} \
--enable-languages=$(TARGET_LANGUAGES) \
--with-sysroot=$(STAGING_DIR) \
+ --with-slibdir=$(STAGING_DIR)/lib \
--enable-shared \
);
touch $@
diff --git a/toolchain/gcc/patches/no-lib64.patch b/toolchain/gcc/patches/no-lib64.patch
new file mode 100644
index 000000000..efa4099ee
--- /dev/null
+++ b/toolchain/gcc/patches/no-lib64.patch
@@ -0,0 +1,11 @@
+diff -Nur gcc-4.4.0.orig/gcc/config/mips/t-linux64 gcc-4.4.0/gcc/config/mips/t-linux64
+--- gcc-4.4.0.orig/gcc/config/mips/t-linux64 2006-06-06 14:51:24.000000000 +0200
++++ gcc-4.4.0/gcc/config/mips/t-linux64 2009-05-28 18:13:45.000000000 +0200
+@@ -1,6 +1,6 @@
+ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi=64
+ MULTILIB_DIRNAMES = n32 32 64
+-MULTILIB_OSDIRNAMES = ../lib32 ../lib ../lib64
++MULTILIB_OSDIRNAMES = ../lib ../lib ../lib
+
+ EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o
+