[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exported vs command line variables

From: Paul Smith
Subject: Re: exported vs command line variables
Date: Sat, 24 Sep 2016 10:00:37 -0400

On Fri, 2016-09-23 at 16:09 -0700, David Boyce wrote:
> "Macros defined by the MAKEFLAGS environment variable and macros
> defined in the makefile(s) shall not be added to the environment of
> make if they are not already in its environment."

That text is not in the currently published version of the standard
(2008), so it's not normative (yet).  It's a change in behavior from the
current version.  I'm not sure I even have access to the draft.

However, I'm open to making this change as it doesn't seem like much of
an issue from a backwards-compatibility standpoint even though, as
Philip points out, the behavior of make when MAKEFLAGS is set in the
makefile is not specified.

On Fri, 2016-09-23 at 13:24 +0000, Edward Welbourne wrote:
> This does seem like an unsound choice, for the reasons David gave,

Perhaps but as discussed, it's been that way in GNU make (and other
versions of make) forever and is required by the POSIX standard.  So
we'll just have to live with it.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]