diff options
author | Ben Laurie <ben@links.org> | 2013-03-03 02:56:45 +0000 |
---|---|---|
committer | Ben Laurie <ben@links.org> | 2013-03-04 14:31:18 +0000 |
commit | 7bbb8c5620c7a932988473533e2aca385e4b89c5 (patch) | |
tree | 9e185b7f59ce6ae94f847e4a38761aa49685fe92 /util/mk1mf.pl | |
parent | d0aeeee176dabbecd993313f357e83b8286a6a56 (diff) |
Take the first definition of a variable.
Diffstat (limited to 'util/mk1mf.pl')
-rwxr-xr-x | util/mk1mf.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/mk1mf.pl b/util/mk1mf.pl index bb528f0c4b..e19816f4f7 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -69,7 +69,7 @@ open(IN,"<Makefile") || die "unable to open Makefile!\n"; while(<IN>) { my ($mf_opt, $mf_ref); while (($mf_opt, $mf_ref) = each %mf_import) { - if (/^$mf_opt\s*=\s*(.*)$/) { + if (/^$mf_opt\s*=\s*(.*)$/ && !defined($$mfref)) { $$mf_ref = $1; } } |