Subject: Re: optimizing compilation of netbsd-current
To: Mihai CHELARU <kefren@netbastards.org>
From: Frederick Bruckman <fredb@immanent.net>
List: netbsd-help
Date: 09/15/2003 09:26:46
On Mon, 15 Sep 2003, Mihai CHELARU wrote:

> On Monday 15 September 2003 07:22, Frederick Bruckman wrote:
> > On Sun, 14 Sep 2003, Perry E. Metzger wrote:
> > > Scott Zahn <scott@xeroxparc.net> writes:
> > > > Is there a
> > > > better way to specify gcc flags other than editing the 20 or so
> > > > Makefiles and configure scripts?  I already have CFLAGS and
> > > > CPPFLAGS set in my environment, but they don't seem to have any
> > > > affect.
> > >
> > > The environment won't impact those, but you might try /etc/mk.conf
> > >
> > > However, I'm not sure you really want to be touching them...
> >
> > Especially not ${CFLAGS}, since messing with that will surely break
> > the build.
>
> My CFLAGS looks like: -march=athlon-tbird -mcpu=athlon-tbird -mmmx
> -m3dnow
> System compiled fine and works likewise.

In the environment or in ${MAKECONF}? It used to be that setting
${CFLAGS} in ${MAKECONF} overrode things you needed. Besides, we have
${COPTS} and now ${CPUFLAGS} for that.

Frederick