Subject: Re: custom CFLAGS not getting set
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
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/sys.mk has:
> CFLAGS=         ${DBG}
>
> I believe that is from mk-files.
>
> but other mk/sys.mk have:
> CFLAGS?=        ${DBG}

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

My Linux system's other sys.mk files use the ?= syntax, but the version
of sys.mk 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/sys.mk's
CFLAGS=        ${DBG}
 to
CFLAGS?=        ${DBG}
 then all was well for that.

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

Thanks,

   Jeremy C. Reed
   http://bsd.reedmedia.net/