Auto detect no-ec2m add option to make no-ec2m tarball.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 10 Apr 2011 18:30:13 +0000 (18:30 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 10 Apr 2011 18:30:13 +0000 (18:30 +0000)
Configure
util/fipsdist.pl

index 22a5793e24502669e5834875a8ba9ac9ab692393..88d87a598130139ad781795df48fae6726ea94f9 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -1717,6 +1717,10 @@ while (<IN>)
                s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.\$(SHLIB_MAJOR).dylib .dylib/;
                }
        s/^SHARED_LDFLAGS=.*/SHARED_LDFLAGS=$shared_ldflag/;
+       if ($fipscanisteronly == 2 && exists $disabled{"ec2m"})
+               {
+               next if (/ec2_/ || /bn_gf2m/);
+               }
        print OUT $_."\n";
        }
 close(IN);
index 621f90493ea59fa26303f3a152b1b0701560a720..f660c20412ada9168d5a4b4c0649390b20733f6f 100644 (file)
@@ -21,6 +21,13 @@ foreach (split / /, $ENV{LINKDIRS} ) { $cdirs{$_} = 1 };
 
 $cdirs{perlasm} = 1;
 
+if (exists $ENV{NOEC2M})
+       {
+       delete $tarobjs{"bn_gf2m.c"};
+       delete $tarobjs{"ec2_mult.c"};
+       delete $tarobjs{"ec2_smpl.c"};
+       }
+
 my %keep = 
        (
        "Makefile.fips" => 1,