summaryrefslogtreecommitdiff
path: root/patches/glibc/2.6/180-gcc-4.3-sysinclude-path.patch
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-07-28 21:59:40 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-07-28 21:59:40 (GMT)
commit2263510b7a0a6dedef573dc25a63bfab9d58effb (patch)
tree9a2f68f2ddccd8a227a893d593533571865e0102 /patches/glibc/2.6/180-gcc-4.3-sysinclude-path.patch
parent6317df47791e1e35b78dc69a636445dbc22d5c21 (diff)
New patches to make glibc 2.6 and 2.6.1 build for Alpha.
Forwarded by Ioannis E. VENETIS. /trunk/patches/glibc/2.6.1/200-alpha-ptr_mangle.patch | 103 103 0 0 ++++++++ /trunk/patches/glibc/2.6.1/190-alpha-atfcts.patch | 11 11 0 0 + /trunk/patches/glibc/2.6.1/180-gcc-4.3-sysinclude-path.patch | 50 50 0 0 ++++ /trunk/patches/glibc/2.6.1/210-lll_lock_t.patch | 237 237 0 0 ++++++++++++++++++ /trunk/patches/glibc/2.6/200-alpha-ptr_mangle.patch | 103 103 0 0 ++++++++ /trunk/patches/glibc/2.6/190-alpha-atfcts.patch | 11 11 0 0 + /trunk/patches/glibc/2.6/180-gcc-4.3-sysinclude-path.patch | 50 50 0 0 ++++ /trunk/patches/glibc/2.6/210-lll_lock_t.patch | 237 237 0 0 ++++++++++++++++++ /trunk/patches/glibc/ports-2.6.1/120-lll_lock_t.patch | 156 156 0 0 ++++++++++++ 9 files changed, 958 insertions(+)
Diffstat (limited to 'patches/glibc/2.6/180-gcc-4.3-sysinclude-path.patch')
-rw-r--r--patches/glibc/2.6/180-gcc-4.3-sysinclude-path.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/patches/glibc/2.6/180-gcc-4.3-sysinclude-path.patch b/patches/glibc/2.6/180-gcc-4.3-sysinclude-path.patch
new file mode 100644
index 0000000..563cd28
--- /dev/null
+++ b/patches/glibc/2.6/180-gcc-4.3-sysinclude-path.patch
@@ -0,0 +1,50 @@
+Patch pointed to by Ryan ARNOLD on the libc-help ML.
+See: http://sourceware.org/ml/libc-help/2008-06/msg00063.html
+
+Forwarded to crosstool-NG by Ioannis E. VENETIS:
+See: http://sourceware.org/ml/libc-help/2008-06/msg00063.html
+
+GCC 4.3 changed the location of some of the header files. I don't
+understand why you'd be getting these errors while building GCC since
+it provides them.
+
+With regard to GLIBC, Roland checked in some changes so that the GLIBC
+build system could find the new locations of the GCC provided header
+files.
+
+diff -durN glibc-2.6.orig/configure.in glibc-2.6/configure.in
+--- glibc-2.6.orig/configure.in 2007-06-08 05:16:36.000000000 +0200
++++ glibc-2.6/configure.in 2008-06-24 18:38:46.000000000 +0200
+@@ -911,8 +911,12 @@
+ # header directory and add that to the list. NOTE: Only does the right
+ # thing on a system that doesn't need fixincludes. (Not presently a problem.)
+ if test -n "$sysheaders"; then
+- ccheaders=`$CC -print-file-name=include`
+- SYSINCLUDES="-nostdinc -isystem $ccheaders \
++ SYSINCLUDES=-nostdinc
++ for d in include include-fixed; do
++ i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
++ SYSINCLUDES="$SYSINCLUDES -isystem $i"
++ done
++ SYSINCLUDES="$SYSINCLUDES \
+ -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
+ if test -n "$CXX"; then
+ cxxversion=`$CXX -dumpversion 2>&AS_MESSAGE_LOG_FD` &&
+diff -durN glibc-2.6.orig/configure glibc-2.6/configure
+--- glibc-2.6.orig/configure 2008-06-24 18:35:34.000000000 +0200
++++ glibc-2.6/configure 2008-06-24 18:38:46.000000000 +0200
+@@ -4562,8 +4562,12 @@
+ # header directory and add that to the list. NOTE: Only does the right
+ # thing on a system that doesn't need fixincludes. (Not presently a problem.)
+ if test -n "$sysheaders"; then
+- ccheaders=`$CC -print-file-name=include`
+- SYSINCLUDES="-nostdinc -isystem $ccheaders \
++ SYSINCLUDES=-nostdinc
++ for d in include include-fixed; do
++ i=`$CC -print-file-name="$d"` && test "x$i" != "x$d" &&
++ SYSINCLUDES="$SYSINCLUDES -isystem $i"
++ done
++ SYSINCLUDES="$SYSINCLUDES \
+ -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
+ if test -n "$CXX"; then
+ cxxversion=`$CXX -dumpversion 2>&5` &&