diff options
author | Richard Levitte <levitte@openssl.org> | 2015-04-27 11:10:17 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-04-27 15:55:53 +0200 |
commit | 9e842a5292d035bf3dfa4bc70dd3270b104bdf57 (patch) | |
tree | 99e2aa2136f29fe7ccc37010173079cc2fbed62f /util/mk1mf.pl | |
parent | 4c1408962aeb8100846c01536b2f69f5e781f7d8 (diff) | |
download | openssl-9e842a5292d035bf3dfa4bc70dd3270b104bdf57.tar.gz |
Fix the check of test apps in util/mk1mf.pl
The previous check assumed that the variables for each test app, ending
with TEST would be indication enough. Experience showed that this isn't
the best way. Instead, simply look for the EXE variable in test/Makefile.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'util/mk1mf.pl')
-rwxr-xr-x | util/mk1mf.pl | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/util/mk1mf.pl b/util/mk1mf.pl index 454dcd2790..7b5705534d 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -396,8 +396,15 @@ for (;;) if ($key eq "EX_LIBS") { $ex_libs .= " $val" if $val ne "";} - if ($key =~ /^[A-Z0-9_]*TEST$/ && (!$fipscanisteronly || $dir =~ /^fips/ )) - { $test.=&var_add($dir,$val, 0); } + # There was a condition here before: + # !$fipscanisteronly || $dir =~ /^fips/ + # It currently fills no function and needs to be rewritten anyway, so + # removed for now. + if ($dir eq "test" && $key eq "EXE") + { + foreach my $t (split /\s+/, $val) { + $test.=&var_add($dir,$t, 0) if $t; } + } if ($key eq "EXE_OBJ") { $e_exe.=&var_add($dir,$val, 0); } |