Summary: Environment variables set in the Makefile do not get inherited into anything run via the "shell" subcommand.
Tested on GNU Make versions: 3.81 (on Ubuntu) 4.1 (on FreeBSD) Example Makefile contents which can show the bug: export FOO=foo main: echo "$(shell env)" env If exporting to the environment functioned properly, you'd expect to see 2 "FOO=foo" outputs (one from the "echo", one from the bare "env"), but what we observed was that the env printed out as part of the "echo" did not contain the "FOO=foo". Environment variables from outside the Makefile seem to be inherited just fine. -- Erich Stefan Boleyn <er...@duckytech.com> http://www.duckytech.com/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make