Subject: Re: libcurses and CFLAGS
To: Matthias Scheler <tron@zhadum.org.uk>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: current-users
Date: 11/29/2007 15:07:14
On Mon, Nov 19, 2007 at 01:50:04PM +0000, Matthias Scheler wrote:
> On Mon, Nov 19, 2007 at 11:03:26AM +0100, Zafer Aydogan wrote:
> > since a while I'm having problems building a release, if I'm using
> > CFLAGS=-march=i686 in mk.conf.
> 
> Please grab a piece of paper and write down one hundred times:
> I must *not* set "CFLAGS" in "/etc/mk.conf" or in my environment.
> 
> > Any ideas ?
> 
> Yes, please do *never* set "CFLAGS". Please set "CPU_FLAGS" to
> "-march=i686" instead.

On a related note, I was surprised that CPUFLAGS in /etc/mk.conf
takes precedence over "makeoptions CPUFLAGS" in a kernel file. 
(Am I missing an underscore?)

Cheers,

Patrick