------- Comment #6 from pluto at agmk dot net 2006-05-04 16:15 ------- nobody cares about this bad flags pickup? (In reply to comment #5) > 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 = >
nobody cares? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25672