Subject: Re: custom CFLAGS not getting set
To: Simon Gerraty <sjg@juniper.net>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 12/02/2002 10:38:45
On Mon, 2 Dec 2002, Simon Gerraty wrote:
> >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
>
> Huh? sys.mk is read before anything else, so Makefile settings should
> not be impacted. settings on the command line override anything, so
> only CFLAGS set in the environment should be impacted? Or is
> something reading sys.mk directly?
I don't know why. I did a "bmake -d A" and that is how I found my problem.
It appears to read the sys.mk many times (or at least reuses a cached copy
of it).
expanding "sys.mk".../home/jeremy/netbsd/usr/pkg/share/mk/sys.mk
expanding "sys.mk".../home/jeremy/netbsd/usr/pkg/share/mk/sys.mk
expanding "sys.mk".../home/jeremy/netbsd/usr/pkg/share/mk/sys.mk
expanding "sys.mk".../home/jeremy/netbsd/usr/pkg/share/mk/sys.mk
expanding "sys.mk".../home/jeremy/netbsd/usr/pkg/share/mk/sys.mk
expanding "sys.mk".../home/jeremy/netbsd/usr/pkg/share/mk/sys.mk
expanding "sys.mk".../home/jeremy/netbsd/usr/pkg/share/mk/sys.mk
(Under NetBSD, it appears to do same thing too, but is okay, because
variables aren't overridden.)
I can provide entire 1835014 byte log (99889 bytes bzip2'd) of building
simple net/gethost.
Thanks for your response.
Jeremy C. Reed
http://www.reedmedia.net/