Re: loader breaks with -O2 optimizations

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Thu, 01 Nov 2007 12:53:59 +0100
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
Received on Thu Nov 01 2007 - 11:03:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:20 UTC