Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@redhat.com>2002-04-25 22:12:38 +0400
committerThomas Fitzsimmons <fitzsim@redhat.com>2002-04-25 22:12:38 +0400
commit217ad4a0b130d546091f071d5a7caa0763231022 (patch)
tree6e401b965843264801e5e30f1b98e214319e0636 /newlib/configure
parente1a6dac2af9b90af97ac54fef264b064dfbde054 (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')
-rwxr-xr-xnewlib/configure12
1 files changed, 7 insertions, 5 deletions
diff --git a/newlib/configure b/newlib/configure
index 38b6c49f3..5bece9525 100755
--- a/newlib/configure
+++ b/newlib/configure
@@ -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