Subject: Re: Where is CFLAGS set?
To: Georg Schwarz <>
From: Jeremy C. Reed <>
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/

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