summaryrefslogtreecommitdiffstats
path: root/patches/glibc-ports-2.8/generic/sysdeps_mips_mips32_Makefile-bootstrap.diff
diff options
context:
space:
mode:
Diffstat (limited to 'patches/glibc-ports-2.8/generic/sysdeps_mips_mips32_Makefile-bootstrap.diff')
-rw-r--r--patches/glibc-ports-2.8/generic/sysdeps_mips_mips32_Makefile-bootstrap.diff28
1 files changed, 28 insertions, 0 deletions
diff --git a/patches/glibc-ports-2.8/generic/sysdeps_mips_mips32_Makefile-bootstrap.diff b/patches/glibc-ports-2.8/generic/sysdeps_mips_mips32_Makefile-bootstrap.diff
new file mode 100644
index 0000000..a43709f
--- /dev/null
+++ b/patches/glibc-ports-2.8/generic/sysdeps_mips_mips32_Makefile-bootstrap.diff
@@ -0,0 +1,28 @@
+From: Marc Kleine-Budde <mkl@pengutronix.de>
+Subject: Hack around mips args to host-gcc
+
+originally From: "Steven J dot Hill" <sjhill at realitydiluted dot com>
+for Crosstool
+
+In OSELAS.Toolchain we pass -DBOOTSTRAP_GCC in CC. This patch fixes the
+header extraction from the glibc, by not passing mips specific flags to
+the HOST compiler.
+
+Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
+
+---
+ sysdeps/mips/mips32/Makefile | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+Index: glibc-ports-2.7/sysdeps/mips/mips32/Makefile
+===================================================================
+--- glibc-ports-2.7.orig/sysdeps/mips/mips32/Makefile
++++ glibc-ports-2.7/sysdeps/mips/mips32/Makefile
+@@ -1,3 +1,7 @@
++ifeq ($(filter -DBOOTSTRAP_GCC,$(CC)),)
+ ifeq ($(filter -mabi=32,$(CC)),)
+ CC += -mabi=32
+ endif
++else
++CC += -D_MIPS_SZPTR=32
++endif