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:
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