From 9052b52dfc69d9567e2e664b0f096bfae535bcad Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Fri, 10 May 2002 03:15:07 +0000 Subject: Fix Debian bug #144306: pass target-specific variables into the environment properly. Fix configure: allow cross-compilation; fix getloadavg (still needs _lots_ of work!) Let $(call ...) functions to be self-referencing. Lets us do transitive closures, for example. --- variable.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'variable.c') diff --git a/variable.c b/variable.c index e1c0da6..148e081 100644 --- a/variable.c +++ b/variable.c @@ -120,6 +120,7 @@ define_variable_in_set (name, length, value, origin, recursive, set, flocp) v->origin = origin; v->recursive = recursive; v->expanding = 0; + v->exp_count = 0; v->per_target = 0; v->append = 0; v->export = v_default; @@ -711,7 +712,7 @@ target_environment (file) if (v->recursive && v->origin != o_env && v->origin != o_env_override) { - char *value = recursively_expand (v); + char *value = recursively_expand_for_file (v, file); #ifdef WINDOWS32 if (strcmp(v->name, "Path") == 0 || strcmp(v->name, "PATH") == 0) -- cgit v1.2.3