[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patches] Support GCC's include-fixed directory
- To: patches@xxxxxxxxxx
- Subject: [patches] Support GCC's include-fixed directory
- From: "Joseph S. Myers" <joseph@xxxxxxxxxxxxxxxx>
- Date: Wed, 28 Feb 2007 01:14:14 +0000 (UTC)
After my patch <http://gcc.gnu.org/ml/gcc-patches/2007-02/msg02038.html>
GCC now has two internal header directories, one for most of the
GCC-provided headers and one for fixed headers - the latter including
limits.h because of the complicated interaction between the GCC and libc
versions of that header.
I've applied this patch to make EGLIBC's configure script know about the
include-fixed directory; an extra -isystem option is harmless when using a
5Bcompiler that doesn't have that directory.
Index: configure.in
===================================================================
--- configure.in (revision 1583)
+++ configure.in (working copy)
@@ -915,7 +915,7 @@
# 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 -isystem $ccheaders -isystem $ccheaders-fixed \
-isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
if test -n "$CXX"; then
cxxversion=`$CXX -dumpversion 2>&AS_MESSAGE_LOG_FD` &&
Index: configure
===================================================================
--- configure (revision 1583)
+++ configure (working copy)
@@ -4566,7 +4566,7 @@
# 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 -isystem $ccheaders -isystem $ccheaders-fixed \
-isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
if test -n "$CXX"; then
cxxversion=`$CXX -dumpversion 2>&5` &&
Index: ChangeLog.eglibc
===================================================================
--- ChangeLog.eglibc (revision 1583)
+++ ChangeLog.eglibc (working copy)
@@ -1,3 +1,9 @@
+2007-02-27 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
+
+ * configure.in: Also pass -isystem option for GCC's include-fixed
+ directory.
+ * configure: Regenerate.
+
2007-02-20 Jim Blandy <jimb@xxxxxxxxxxxxxxxx>
* Makefile (install-headers): Preserve old behavior: depend on
--
Joseph S. Myers
joseph@xxxxxxxxxxxxxxxx