Patch: FYI: libgcj Makefile fixlet

Tom Tromey tromey@redhat.com
Wed Jul 9 21:00:00 GMT 2003


I'm checking this in on the trunk.

This lets you set CPPFLAGS from the make command-line.  This is useful
if you want to compile without -O2 in the libjava build directory.
These days you have to set CPPFLAGS; this is change from a while back,
when only CXXFLAGS mattered (for the C++ code anyway).

Putting -O2 in CPPFLAGS seems misguided, but that's a discussion for
some other list/time.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* Makefile.in: Rebuilt.
	* Makefile.am (AM_MAKEFLAGS): Added CPPFLAGS.

Index: Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libjava/Makefile.am,v
retrieving revision 1.304
diff -u -r1.304 Makefile.am
--- Makefile.am 27 Jun 2003 12:48:39 -0000 1.304
+++ Makefile.am 9 Jul 2003 20:58:34 -0000
@@ -2734,6 +2734,7 @@
 	"CC_FOR_BUILD=$(CC_FOR_BUILD)" \
 	"CFLAGS=$(CFLAGS)" \
 	"CXXFLAGS=$(CXXFLAGS)" \
+	"CPPFLAGS=$(CPPFLAGS)" \
 	"CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
 	"CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
 	"INSTALL=$(INSTALL)" \



More information about the Java-patches mailing list