diff options
author | Thomas Fitzsimmons <fitzsim@redhat.com> | 2001-12-13 23:57:00 +0000 |
---|---|---|
committer | Thomas Fitzsimmons <fitzsim@redhat.com> | 2001-12-13 23:57:00 +0000 |
commit | d315f8fc0bf57b41c2a99e3657581eb96bf9cb4e (patch) | |
tree | 449ef74d85b5ba2122425a6f11b0e30e5e3b77eb /configure.in | |
parent | 2e1a71756e754ada402efe9f5e2d6378dc11e496 (diff) | |
download | newlib-d315f8fc0bf57b41c2a99e3657581eb96bf9cb4e.zip newlib-d315f8fc0bf57b41c2a99e3657581eb96bf9cb4e.tar.gz newlib-d315f8fc0bf57b41c2a99e3657581eb96bf9cb4e.tar.bz2 |
* configure.in (FLAGS_FOR_TARGET): Remove -nostdinc and -isystem
options for i[3456]86-pc-linux* native builds.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/configure.in b/configure.in index fa83ced..0a91207 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 |