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 | 85832b7beca51e7527374c03e0b95543c0e0c0fd (patch) | |
tree | eb087f46f8c436afbced5fc64a4ea4e2b37c59ca /configure.in | |
parent | 58e2696d70e260d5871516f6ecc255099d46bafe (diff) | |
download | gdb-85832b7beca51e7527374c03e0b95543c0e0c0fd.tar.gz |
* configure.in (FLAGS_FOR_TARGET): Remove -nostdinc and -isystemnewlib-1_10_0
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 fa83cedf6cc..0a912070185 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 |