Subject: Re: Help newbie fix a build failure?
To: None <netbsd-users@netbsd.org>
From: Jukka Salmi <j+nbsd@2005.salmi.ch>
List: netbsd-users
Date: 05/21/2005 18:58:48
Kirk Strauser --> netbsd-users (2005-05-21 09:02:24 -0500):
> On Thursday 19 May 2005 07:57 am, Jukka Salmi wrote:
> 
> > You probably have -Os in COPTS or CFLAGS. Change the lines you posted above
> > in your /etc/mk.conf to look like this:
> >
> > COPTS:=${COMMONFLAGS} ${COPTS:C/-O[0-9s]*//g}
> > CFLAGS:=${COMMONFLAGS} ${CFLAGS:C/-O[0-9s]*//g}
> 
> That fixed the problem.  Thanks!  Out of curiosity, though, do you have any 
> idea where that spurious -Os might have come from?  I'm certain that I did 
> not configure it.

src/rescue/Makefile sets DBG=-Os, and DBG is included in CFLAGS (see
src/share/mk/sys.mk).


Cheers, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~