loader breaks with -O2 optimizations

Dag-Erling Smørgrav des at des.no
Thu Nov 1 05:03:51 PDT 2007


Jeremy Chadwick <koitsu at FreeBSD.org> writes:
> On Wed, Oct 31, 2007 at 02:35:19PM +0100, Dag-Erling Smørgrav wrote:
> > Jeremy Chadwick <koitsu at FreeBSD.org> writes:
> > > Stephan F. Yaraghchi <stephan at yaraghchi.org> writes:
> > > > CFLAGS= -O2 -funroll-loops -pipe
> > > You shouldn't have this in your make.conf.  Remove it.  This is very
> > > likely breaking a lot more than just loader.
> > Uh, no.  Please stop spreading FUD.
> Every time it's been discussed, the conclusion reached has been "stop
> setting CFLAGS, you're overwriting any previous definition used, which
> may be causing problems for you.  Use += or COPTFLAGS."  Even the
> Handbook explains the dangers of using CFLAGS= when one should be
> CFLAGS+=.

So why didn't you say that in the first place, instead of "remove it"?

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-current mailing list