This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] configure's CPPFLAGS not passed to gcc/Makefile
- From: "David O'Brien" <obrien at FreeBSD dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 14 Dec 2003 23:14:10 -0800
- Subject: [PATCH] configure's CPPFLAGS not passed to gcc/Makefile
- Organization: The NUXI BSD Group
- Reply-to: obrien at FreeBSD dot org
--with-libiconv-prefix is broken because there is no @CPPFLAGS@ in
gcc/Makefile.in for configure to influence with its
"s%@CPPFLAGS@%$CPPFLAGS%g".
The below patch is one way to fix the problem. If people aren't
comfortable with overriding any $CPPFLAGS in the environment, configure
could be changed to "s%@CONFIGURE_CPPFLAGS@%$CPPFLAGS%g" and
gcc/Makefile.in have @CONFIGURE_CPPFLAGS@ added.
--
-- David (obrien@FreeBSD.org)
2003-12-14 David O'Brien <obrien@FreeBSD.org>
* Makefile.in (CPPFLAGS): Initialize from configure.
Index: gcc/Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.1208
diff -u -r1.1208 Makefile.in
--- gcc/Makefile.in 12 Dec 2003 22:53:51 -0000 1.1208
+++ gcc/Makefile.in 15 Dec 2003 07:14:02 -0000
@@ -194,6 +194,8 @@
# $(GCC_WARN_CFLAGS), or nothing.
WARN_CFLAGS = @warn_cflags@
+CPPFLAGS = @CPPFLAGS@
+
# These exists to be overridden by the x-* and t-* files, respectively.
X_CFLAGS =
T_CFLAGS =