[Bug bootstrap/25672] cross build's libgcc picks up CFLAGS

pluto at agmk dot net gcc-bugzilla@gcc.gnu.org
Sun Jan 8 18:29:00 GMT 2006



------- Comment #5 from pluto at agmk dot net  2006-01-08 18:29 -------
hmm, CFLAGS_FOR_TARGET picks up CFLAGS.

--- gcc-4.1-20060106/Makefile.in.orig   2005-12-15 15:02:02.000000000 +0100
+++ gcc-4.1-20060106/Makefile.in        2006-01-08 19:27:18.406458250 +0100
@@ -329,9 +329,9 @@
 # CFLAGS will be just -g.  We want to ensure that TARGET libraries
 # (which we know are built with gcc) are built with optimizations so
 # prepend -O2 when setting CFLAGS_FOR_TARGET.
-CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
+CFLAGS_FOR_TARGET = -O2 $(SYSROOT_CFLAGS_FOR_TARGET)
 SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
-CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
+CXXFLAGS_FOR_TARGET = -O2 $(SYSROOT_CFLAGS_FOR_TARGET)
 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
 LDFLAGS_FOR_TARGET =


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25672




More information about the Gcc-bugs mailing list