Update of bug #46585 (project make):

                  Status:                    None => Not A Bug              
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #3:

See also duplicate bug #48360.

I've reviewed the POSIX spec and it does seem to say that GNU make's current
behavior is the expected one; I see this (although in the Rationale section:

_The environment is the same as the environment to make except that MAKEFLAGS
and macros defined on the make command line are added, and except that macros
defined by the MAKEFLAGS environment variable and macros defined in the
makefile(s) may update the value of an existing environment variable (other
than SHELL)._

I don't see any great way to avoid this; many makefiles have been written
expecting this behavior (consider, for example, resetting common environment
variables such as PATH, etc.) so we can't just turn it off completely... and
makefile writers already have a way to avoid exporting variables they don't
want to export (via the unexport command).

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46585>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to