mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-12-29 08:09:02 +00:00
Formerly function.c.~29~
This commit is contained in:
parent
84b4d9cce4
commit
8980e49036
1 changed files with 10 additions and 0 deletions
10
function.c
10
function.c
|
@ -337,8 +337,18 @@ expand_function (o, function, text, end)
|
|||
if (argv == 0)
|
||||
break;
|
||||
|
||||
/* Using a target environment for `shell' loses in cases like:
|
||||
export var = $(shell echo foobie)
|
||||
because target_environment hits a loop trying to expand $(var)
|
||||
to put it in the environment. This is even more confusing when
|
||||
var was not explicitly exported, but just appeared in the
|
||||
calling environment. */
|
||||
#if 1
|
||||
envp = environ;
|
||||
#else
|
||||
/* Construct the environment. */
|
||||
envp = target_environment ((struct file *) 0);
|
||||
#endif
|
||||
|
||||
/* For error messages. */
|
||||
if (reading_filename != 0)
|
||||
|
|
Loading…
Reference in a new issue