Subject: Re: custom CFLAGS not getting set
To: None <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 12/02/2002 10:01:31
(This email is blind carbon copied to maintainer of mk-files.)

> Now I see that the Linux system's
> /home/jeremy/netbsd/usr/pkg/share/mk/ has:
> CFLAGS=         ${DBG}
> I believe that is from mk-files.
> but other mk/ have:
> CFLAGS?=        ${DBG}

Why does the assign the value to the variables only if they
are not already defined, while the other operating system files
override the settings?

My Linux system's other files use the ?= syntax, but the version
of I use for building packages is from mk-files and it
overwrites my custom settings set in individual Makefiles. When I changed
my /home/jeremy/netbsd/usr/pkg/share/mk/'s
CFLAGS=        ${DBG}
CFLAGS?=        ${DBG}
 then all was well for that.

Why isn't it like that in the first place?


   Jeremy C. Reed