102-gcc_4_3.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. http://sourceware.org/bugzilla/show_bug.cgi?id=5442
  2. diff -ruN glibc-2.6.1-old/configure.in glibc-2.6.1-new/configure.in
  3. --- glibc-2.6.1-old/configure.in 2007-03-20 13:11:23.000000000 +0100
  4. +++ glibc-2.6.1-new/configure.in 2009-01-21 01:09:16.000000000 +0100
  5. @@ -911,8 +911,12 @@
  6. # header directory and add that to the list. NOTE: Only does the right
  7. # thing on a system that doesn't need fixincludes. (Not presently a problem.)
  8. if test -n "$sysheaders"; then
  9. - ccheaders=`$CC -print-file-name=include`
  10. - SYSINCLUDES="-nostdinc -isystem $ccheaders \
  11. + SYSINCLUDES=-nostdinc
  12. + for d in include include-fixed; do
  13. + i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
  14. + SYSINCLUDES="$SYSINCLUDES -isystem $i"
  15. + done
  16. + SYSINCLUDES="$SYSINCLUDES \
  17. -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
  18. if test -n "$CXX"; then
  19. cxxversion=`$CXX -dumpversion 2>&AS_MESSAGE_LOG_FD` &&
  20. diff -ruN glibc-2.6.1-old/configure glibc-2.6.1-new/configure
  21. --- glibc-2.6.1-old/configure 2007-07-31 15:46:12.000000000 +0200
  22. +++ glibc-2.6.1-new/configure 2009-01-21 01:09:13.000000000 +0100
  23. @@ -4562,8 +4562,12 @@
  24. # header directory and add that to the list. NOTE: Only does the right
  25. # thing on a system that doesn't need fixincludes. (Not presently a problem.)
  26. if test -n "$sysheaders"; then
  27. - ccheaders=`$CC -print-file-name=include`
  28. - SYSINCLUDES="-nostdinc -isystem $ccheaders \
  29. + SYSINCLUDES=-nostdinc
  30. + for d in include include-fixed; do
  31. + i=`$CC -print-file-name="$d"` && test "x$i" != "x$d" &&
  32. + SYSINCLUDES="$SYSINCLUDES -isystem $i"
  33. + done
  34. + SYSINCLUDES="$SYSINCLUDES \
  35. -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
  36. if test -n "$CXX"; then
  37. cxxversion=`$CXX -dumpversion 2>&5` &&