diff options
author | Thomas Fitzsimmons <fitzsim@redhat.com> | 2002-04-25 22:12:38 +0400 |
---|---|---|
committer | Thomas Fitzsimmons <fitzsim@redhat.com> | 2002-04-25 22:12:38 +0400 |
commit | 217ad4a0b130d546091f071d5a7caa0763231022 (patch) | |
tree | 6e401b965843264801e5e30f1b98e214319e0636 /newlib/configure.in | |
parent | e1a6dac2af9b90af97ac54fef264b064dfbde054 (diff) |
* configure.in (CC_FOR_BUILD): Set to gcc whether
cross-compiling or not.
(CC): Add -isystem's for targ-include and libc/include when they
do not already appear in CC.
Diffstat (limited to 'newlib/configure.in')
-rw-r--r-- | newlib/configure.in | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/newlib/configure.in b/newlib/configure.in index 9c62a1b8f..372d8fb9d 100644 --- a/newlib/configure.in +++ b/newlib/configure.in @@ -98,14 +98,16 @@ AC_SUBST(UNIX_OBJECTLIST) # Put a plausible default for CC_FOR_BUILD in Makefile. if test -z "$CC_FOR_BUILD"; then - if test "x$cross_compiling" = "xno"; then - CC_FOR_BUILD='$(CC)' - else - CC_FOR_BUILD=gcc - fi + CC_FOR_BUILD=gcc fi AC_SUBST(CC_FOR_BUILD) +# These get added in the top-level configure.in, except in the case where +# newlib is being built natively. +if test -z `echo ${CC} | grep \/libc\/include`; then + CC="${CC} -isystem $PWD/targ-include -isystem ${newlib_basedir}/libc/include" +fi + if test "${multilib}" = "yes"; then multilib_arg="--enable-multilib" else |