[Dnsmasq-discuss] Fwd: [PATCH] Makefile: make variables overridable
Pali Rohár
pali.rohar at gmail.com
Sun Jul 12 23:32:57 BST 2020
On Sunday 12 July 2020 17:40:56 John Ericson wrote:
> On Sun, Jul 12, 2020, at 5:22 PM, Pali Rohár wrote:
> >
> > But why is this change needed at all? Are there some bugs in GNU make so
> > that macros/variables initialized by '=' cannot be overridden and
> > initialization with '?=' is fixing those bugs?
>
> Definitions with = can still be overridden on the command line, but won't be overridden by environment variables alone. The PKG_CONFIG change would just be to avoid extra make flags.
Ok, so you wanted to automatically override all those variables without
specifying them as arguments to make process.
Yes, this not working in classic make as for make it is expected that
caller explicitly supply what wants to override.
I asked about GNU make bugs because I already hit 3 different bugs in
this make software which caused that variables were not correctly set or
propagated. So I though that you found another related to = and ?=.
--
Pali Rohár
pali.rohar at gmail.com
More information about the Dnsmasq-discuss
mailing list