Subject: Re: Where is CFLAGS set?
To: Georg Schwarz <georg.schwarz@freenet.de>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 04/08/2005 16:34:50
On Sat, 9 Apr 2005, Georg Schwarz wrote:

> Hopefully an easy question, but I just cannot find it:
> In my mk.conf I have
> CFLAGS+= -m486 -O3
> Now /usr/local/pkg/bin/bmake show-vars VARNAMES=CFLAGS
> yields -O2 -m486 -O3. Where is that -O2 set?

On a NetBSD box, that is set in /usr/share/mk/sys.mk

DBG?=   -O2

CFLAGS?=        ${DBG}

I have had problems building some software on a Linux system because
the optimization was not defined.



 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/