diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2007-01-19 13:17:52 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2007-01-19 13:17:52 +0000 |
commit | af094ed1248348ffc2d27a9d1a9b55ff04e6b35b (patch) | |
tree | c2dc378f5ee92cbf06b855eb6341ba26db3aeeb0 | |
parent | 83a38057713ef581012704c7419fc1f4c7447dd2 (diff) |
User cleaner way to handle new options for VC++ build.
-rwxr-xr-x | util/mk1mf.pl | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/util/mk1mf.pl b/util/mk1mf.pl index 0f94082bb5..19cb9591f9 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -365,7 +365,6 @@ for (;;) if ($key eq "FIPS_EX_OBJ") { - $val =~ s|\.\./crypto/||g; $fips_ex_obj=&var_add("crypto",$val); } @@ -389,7 +388,7 @@ if ($fips) $fips_exclude_obj{$1} = 1 if (/\/([^\/]*)$/); } - # $fips_exclude_obj{"bn_asm"} = 1; + $fips_exclude_obj{"bn_asm"} = 1; my @ltmp = split " ", $lib_obj{"CRYPTO"}; @@ -398,21 +397,19 @@ if ($fips) foreach(@ltmp) { - if (/\/bn_asm$/) + if (/\/([^\/]*)$/ && exists $fips_exclude_obj{$1}) { - $lib_obj{"FIPS"} .= "$_ "; + if ($fipscanisterbuild) + { + $lib_obj{"FIPS"} .= "$_ "; + } } - elsif (!/\/([^\/]*)$/ || !exists $fips_exclude_obj{$1}) + else { $lib_obj{"CRYPTO"} .= "$_ "; } } - if ($fipscanisterbuild) - { - $lib_obj{"FIPS"} .= $fips_ex_obj; - } - } if ($fipscanisterbuild) |