patches/glibc/2.7/210-gcc-4.3_sysinclude_path.patch
changeset 747 d3e603e7c17c
parent 746 b150d6f590fc
child 748 61cd4eb6034d
     1.1 --- a/patches/glibc/2.7/210-gcc-4.3_sysinclude_path.patch	Mon Jul 28 21:08:01 2008 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,50 +0,0 @@
     1.4 -Patch pointed to by Ryan ARNOLD on the libc-help ML.
     1.5 -See: http://sourceware.org/ml/libc-help/2008-06/msg00063.html
     1.6 -
     1.7 -Forwarded to crosstool-NG by Ioannis E. VENETIS:
     1.8 -See: http://sourceware.org/ml/libc-help/2008-06/msg00063.html
     1.9 -
    1.10 -GCC 4.3 changed the location of some of the header files.  I don't
    1.11 -understand why you'd be getting these errors while building GCC since
    1.12 -it provides them.
    1.13 -
    1.14 -With regard to GLIBC, Roland checked in some changes so that the GLIBC
    1.15 -build system could find the new locations of the GCC provided header
    1.16 -files.
    1.17 -
    1.18 -diff -durN glibc-2.7.orig/configure.in glibc-2.7/configure.in
    1.19 ---- glibc-2.7.orig/configure.in	2007-06-08 05:16:36.000000000 +0200
    1.20 -+++ glibc-2.7/configure.in	2008-06-24 18:38:46.000000000 +0200
    1.21 -@@ -911,8 +911,12 @@
    1.22 - # header directory and add that to the list.  NOTE: Only does the right
    1.23 - # thing on a system that doesn't need fixincludes.  (Not presently a problem.)
    1.24 - if test -n "$sysheaders"; then
    1.25 --  ccheaders=`$CC -print-file-name=include`
    1.26 --  SYSINCLUDES="-nostdinc -isystem $ccheaders \
    1.27 -+  SYSINCLUDES=-nostdinc
    1.28 -+  for d in include include-fixed; do
    1.29 -+    i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
    1.30 -+    SYSINCLUDES="$SYSINCLUDES -isystem $i"
    1.31 -+  done
    1.32 -+  SYSINCLUDES="$SYSINCLUDES \
    1.33 - -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
    1.34 -   if test -n "$CXX"; then
    1.35 -     cxxversion=`$CXX -dumpversion 2>&AS_MESSAGE_LOG_FD` &&
    1.36 -diff -durN glibc-2.7.orig/configure glibc-2.7/configure
    1.37 ---- glibc-2.7.orig/configure	2008-06-24 18:35:34.000000000 +0200
    1.38 -+++ glibc-2.7/configure	2008-06-24 18:38:46.000000000 +0200
    1.39 -@@ -5062,8 +5062,12 @@
    1.40 - # header directory and add that to the list.  NOTE: Only does the right
    1.41 - # thing on a system that doesn't need fixincludes.  (Not presently a problem.)
    1.42 - if test -n "$sysheaders"; then
    1.43 --  ccheaders=`$CC -print-file-name=include`
    1.44 --  SYSINCLUDES="-nostdinc -isystem $ccheaders \
    1.45 -+  SYSINCLUDES=-nostdinc
    1.46 -+  for d in include include-fixed; do
    1.47 -+    i=`$CC -print-file-name="$d"` && test "x$i" != "x$d" &&
    1.48 -+    SYSINCLUDES="$SYSINCLUDES -isystem $i"
    1.49 -+  done
    1.50 -+  SYSINCLUDES="$SYSINCLUDES \
    1.51 - -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
    1.52 -   if test -n "$CXX"; then
    1.53 -     cxxversion=`$CXX -dumpversion 2>&5` &&