summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@redhat.com>2001-12-13 23:57:00 +0000
committerThomas Fitzsimmons <fitzsim@redhat.com>2001-12-13 23:57:00 +0000
commit5a5f28e694c1a52c51e6d8131b8423d343358ab2 (patch)
tree55e3bf76779a272eab1e08f8d459ae04b778ca9d
parent117c1f7ec86daae2d88c468e41d4668924398f4e (diff)
downloadbinutils-redhat-newlib-1_10_0.tar.gz
* configure.in (FLAGS_FOR_TARGET): Remove -nostdinc and -isystemnewlib-1_10_0
options for i[3456]86-pc-linux* native builds.
-rw-r--r--ChangeLog5
-rw-r--r--configure.in18
2 files changed, 19 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 2dfc6bcd16..12d27a10b5 100644
--- 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
diff --git a/configure.in b/configure.in
index fa83cedf6c..0a91207018 100644
--- a/configure.in
+++ b/configure.in
@@ -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