* configure.in (FLAGS_FOR_TARGET): Remove -nostdinc and -isystem
authorThomas Fitzsimmons <fitzsim@redhat.com>
Thu, 13 Dec 2001 23:57:00 +0000 (23:57 +0000)
committerThomas Fitzsimmons <fitzsim@redhat.com>
Thu, 13 Dec 2001 23:57:00 +0000 (23:57 +0000)
options for i[3456]86-pc-linux* native builds.

ChangeLog
configure.in

index 2dfc6bcd163075facaa3fd46179f851e75b681f3..12d27a10b5493773e3832b83eb5b696802d51450 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
+
+       * configure.in (FLAGS_FOR_TARGET): Remove -nostdinc and -isystem
+       options for i[3456]86-pc-linux* native builds.
+
 2001-12-05  Laurent Guerby  <guerby@acm.org>
 
        * MAINTAINERS: gcc adopts symlink-tree, refer more to
index fa83cedf6cca69e19b1f66038e5eaed60c55b322..0a912070185e782a4bf211712ae488536e3b517d 100644 (file)
@@ -1371,10 +1371,20 @@ case " $skipdirs " in
      fi
    fi
 
-   # If we're building newlib, use its generic headers last, but search
-   # for any libc-related directories first (so make it the last -B
-   # switch).
-   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
+   case "${target}-${is_cross_compiler}" in
+   i[3456]86-pc-linux*-no)
+      # Here host == target, so we don't need to build gcc,
+      # so we don't want to discard standard headers.
+      FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
+      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/'
+      ;;
+   *)
+      # If we're building newlib, use its generic headers last, but search
+      # for any libc-related directories first (so make it the last -B
+      # switch).
+      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
+      ;;
+   esac
    ;;
 esac