summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/Makefile.in
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-07-17 04:31:14 +0000
committerChristopher Faylor <me@cgf.cx>2004-07-17 04:31:14 +0000
commit241422d046d017fda493cf55382f19138b35ffbd (patch)
treebae85be1f95c397b9067b4d11d5019f3e4cb8710 /winsup/mingw/Makefile.in
parentcc304ef63e6227e7498256436a0d5141c8952652 (diff)
downloadcygnal-241422d046d017fda493cf55382f19138b35ffbd.tar.gz
cygnal-241422d046d017fda493cf55382f19138b35ffbd.tar.bz2
cygnal-241422d046d017fda493cf55382f19138b35ffbd.zip
* Makefile.in (CC): Strip inappropriate include file settings from any
passed-in CC.
Diffstat (limited to 'winsup/mingw/Makefile.in')
-rw-r--r--winsup/mingw/Makefile.in3
1 files changed, 2 insertions, 1 deletions
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)