From 7bbb8c5620c7a932988473533e2aca385e4b89c5 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Sun, 3 Mar 2013 02:56:45 +0000 Subject: [PATCH] Take the first definition of a variable. --- util/mk1mf.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,") { 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; } } -- 2.40.0