Subject: Re: How to add compiler flags?
To: Greywolf <>
From: Peter Varga <>
List: current-users
Date: 06/19/2002 15:52:29
On Wed, Jun 19, 2002 at 12:22:43PM -0700, Greywolf wrote:
> Okay, once upon a time, it was recommended that I use
> in my /etc/mk.conf LOCAL_CFLAGS to define extra options for my
> compilations at build time, and to use HOST_CFLAGS+= ${LOCAL_CFLAGS}
> Then things started to break, and I was told, "Don't do that."
> "Use COPTS+= instead."
> Then, recently, that caused my kernel builds to completely explode,
> being twice as large as they needed to be.
> So I was told, "Don't do that."
> Does anyone have a suggestion as to what I *should* be using to add
> build-time compiler flags to /etc/mk.conf, since HOST_CFLAGS,
> LOCAL_CFLAGS and COPTS all seem to be off limits?

No suggestion, yet no problems either when I modify these variables.

What are you modifying and why?  What platform?

> 				--*greywolf;
> --
> NetBSD: Dave Barry is working on our motto.