* 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.
This commit is contained in:
Thomas Fitzsimmons
2002-04-25 18:12:38 +00:00
parent e1a6dac2af
commit 217ad4a0b1
4 changed files with 40 additions and 10 deletions

12
newlib/configure vendored
View File

@ -2448,14 +2448,16 @@ fi
# 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
# 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