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:
authorChristopher Faylor <me@cgf.cx>2004-07-17 08:31:14 +0400
committerChristopher Faylor <me@cgf.cx>2004-07-17 08:31:14 +0400
commit241422d046d017fda493cf55382f19138b35ffbd (patch)
treebae85be1f95c397b9067b4d11d5019f3e4cb8710
parentcc304ef63e6227e7498256436a0d5141c8952652 (diff)
* Makefile.in (CC): Strip inappropriate include file settings from any
passed-in CC.
-rw-r--r--winsup/mingw/ChangeLog5
-rw-r--r--winsup/mingw/Makefile.in3
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index 779c47104..5675e3be9 100644
--- a/winsup/mingw/ChangeLog
+++ b/winsup/mingw/ChangeLog
@@ -1,3 +1,8 @@
+2004-07-17 Christopher Faylor <cgf@timesys.com>
+
+ * Makefile.in (CC): Strip inappropriate include file settings from any
+ passed-in CC.
+
2004-07-15 "dgun" <dgun@umpire.com>
* include/complex.h (conj): Correct typo in prototype.
diff --git a/winsup/mingw/Makefile.in b/winsup/mingw/Makefile.in
index 66b6c3aac..610e4e414 100644
--- a/winsup/mingw/Makefile.in
+++ b/winsup/mingw/Makefile.in
@@ -70,7 +70,8 @@ INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
mkinstalldirs = $(SHELL) @MKINSTALLDIRS@
-CC = @CC@
+CC := @CC@
+override CC := ${filter-out -L% -B%,${shell echo $(CC) | sed -e 's%\(-isystem\|-iwithprefixbefore\) *[^ ]*\( \|$$\)% %g'}}
# FIXME: Which is it, CC or CC_FOR_TARGET?
CC_FOR_TARGET = $(CC)
AS_FOR_TARGET = $(AS)