Subject: Re: how to kill any O* when compiling
To: Timo Schoeler <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 05/04/2005 10:29:33
On Wed, 4 May 2005, Timo Schoeler wrote:

> >>however, is there a way to kill any O* statements when building the
> >>package? i tried sth. like CFLAGS-=-O* and COPTS-=-O* in /etc/mk.conf,
> >>but this didn't work (there were still -O2's)...
> >
> >
> > Maybe set:
> >  DBG=  # to nothing

> hm, where do i have to set this? neither the Makefile nor
> contains a line 'DBG= '...

Set it in mk.conf.

DBG is defined as -O2 by default on NetBSD. And by default, CFLAGS is set
to ${DBG}. Have a look in your /usr/share/misc/mk/ mk files.

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links