Subject: Re: kern/21311: Generic kernel doesnt compile in 1.6.1_STABLE
To: Lubomir Sedlacik <salo@Xtrmntr.org>
From: Mipam <mipam@ibb.net>
List: netbsd-bugs
Date: 04/25/2003 01:17:57
On Fri, Apr 25, 2003 at 01:01:16AM +0200, Lubomir Sedlacik wrote:
> hi,
> 
> On Fri, Apr 25, 2003 at 12:49:41AM +0200, Mipam wrote:
> >
> > I saw it, but i think something needs to change then.  Then what is
> > the difference between setting: CFLAGS+= -pipe and CFLAGS=-pipe ??
> > Same for COPTS?  I thought .... += means to add and = means to set.
> > What you tell me now is that it makes no difference anyway.  Both +=
> > and = SETS the options. So it makes me wonder again, whats the use of
> > += anyway if the options are set by += instead of adding something
> > above the by default defined options like -O2 in sys.mk for example?
> 
> the order depends.  there is no difference between CFLAGS+=, CFLAGS= or
> CFLAGS?= if it's the first one exapanded.  see make(1) for details.

To do what i wish would this work:

CFLAGS= ${CFLAGS} -pipe

and COPTS= ${COPTS} -pipe ?

Meaning: the new CFLAGS are the CFLAGS which are already define + -pipe?
If not, what could i do?
Bye,

Mipam.