1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/2.3.6/290-gcc-4.3-include.patch Mon Mar 15 21:51:20 2010 +0100
1.3 @@ -0,0 +1,40 @@
1.4 +GCC trunk now has multiple internal headers directories, one
1.5 +containing the self-contained GCC-provided headers and one containing
1.6 +the <limits.h> (not self-contained but including libc's <limits.h> or
1.7 +a fixed version thereof) and the fixed headers; more such directories
1.8 +may be added in future.
1.9 +
1.10 +When glibc uses -nostdinc, it needs to use -isystem options for all
1.11 +these internal directories. This patch teaches it about the
1.12 +include-fixed directory (and is harmless with old GCC versions without
1.13 +that directory).
1.14 +
1.15 +2007-03-18 Joseph Myers <joseph@codesourcery.com>
1.16 +
1.17 + * configure.in: Also pass -isystem option for GCC's include-fixed
1.18 + directory.
1.19 + * configure: Regenerate.
1.20 +
1.21 +
1.22 +--- glibc-2.3.6.ori/configure.in 2008-10-22 14:55:58.000000000 +0200
1.23 ++++ glibc-2.3.6/configure.in 2008-10-22 14:56:15.000000000 +0200
1.24 +@@ -804,7 +804,7 @@
1.25 + # thing on a system that doesn't need fixincludes. (Not presently a problem.)
1.26 + if test -n "$sysheaders"; then
1.27 + ccheaders=`$CC -print-file-name=include`
1.28 +- SYSINCLUDES="-nostdinc -isystem $ccheaders \
1.29 ++ SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $ccheaders-fixed \
1.30 + -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
1.31 + fi
1.32 + AC_SUBST(SYSINCLUDES)
1.33 +--- glibc-2.3.6.ori/configure 2008-10-22 15:11:37.000000000 +0200
1.34 ++++ glibc-2.3.6/configure 2008-10-22 15:11:54.000000000 +0200
1.35 +@@ -4438,7 +4438,7 @@
1.36 + # thing on a system that doesn't need fixincludes. (Not presently a problem.)
1.37 + if test -n "$sysheaders"; then
1.38 + ccheaders=`$CC -print-file-name=include`
1.39 +- SYSINCLUDES="-nostdinc -isystem $ccheaders \
1.40 ++ SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $ccheaders-fixed \
1.41 + -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
1.42 + fi
1.43 +