diff options
author | Paul Smith <psmith@gnu.org> | 2010-11-30 14:48:52 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2010-11-30 14:48:52 +0000 |
commit | 03e2347f92e6484f2a4b6df5ee98b846f38ff4df (patch) | |
tree | 3c4065c573c2e2af58596efedaa0595f793f7f04 /read.c | |
parent | 1208b1e7e0afa6fb5cced1e822fe34008902ef26 (diff) | |
download | make-03e2347f92e6484f2a4b6df5ee98b846f38ff4df.tar.gz |
Check if the target-specific variable is the same as the global
variable, and if so don't try to update it. Savannah bug #31743.
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1802,7 +1802,8 @@ record_target_var (struct nameseq *filenames, char *defn, int len = strlen(v->name); gv = lookup_variable (v->name, len); - if (gv && (gv->origin == o_env_override || gv->origin == o_command)) + if (gv && v != gv + && (gv->origin == o_env_override || gv->origin == o_command)) { if (v->value != 0) free (v->value); |