summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2011-09-12 05:29:58 +0000
committerPaul Smith <psmith@gnu.org>2011-09-12 05:29:58 +0000
commit39fff0d4805f2f2b1cddce239c1dad2227ad690c (patch)
tree75b3f28061b9cb792899f5b28c0fd1567a6fac2a /read.c
parente551d05b201997836c09c2fca036afedda45bf24 (diff)
downloadmake-39fff0d4805f2f2b1cddce239c1dad2227ad690c.tar.gz
Ensure variables defined in $(call ...) have global scope
Add a note about using #!/usr/bin/make -f to the manual. Clean up the w32 subdirectory in the dist tarball.
Diffstat (limited to 'read.c')
-rw-r--r--read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read.c b/read.c
index b0120942..58423f52 100644
--- a/read.c
+++ b/read.c
@@ -782,7 +782,7 @@ eval (struct ebuffer *ebuf, int set_default)
{
struct variable *v = lookup_variable (p, l);
if (v == 0)
- v = define_variable_loc (p, l, "", o_file, 0, fstart);
+ v = define_variable_global (p, l, "", o_file, 0, fstart);
v->export = exporting ? v_export : v_noexport;
}