OSDN Git Service

* Makefile.in (CC): Strip inappropriate include file settings from any
authorcgf <cgf>
Sat, 17 Jul 2004 04:31:14 +0000 (04:31 +0000)
committercgf <cgf>
Sat, 17 Jul 2004 04:31:14 +0000 (04:31 +0000)
passed-in CC.

winsup/mingw/ChangeLog
winsup/mingw/Makefile.in

index 779c471..5675e3b 100644 (file)
@@ -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.
index 66b6c3a..610e4e4 100644 (file)
@@ -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)