From 4582626544dd7a20099c3d0a33b13717dab2a24f Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 10 Apr 2011 18:30:13 +0000 Subject: [PATCH] Auto detect no-ec2m add option to make no-ec2m tarball. --- Configure | 4 ++++ util/fipsdist.pl | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/Configure b/Configure index 22a5793e24..88d87a5981 100755 --- a/Configure +++ b/Configure @@ -1717,6 +1717,10 @@ while () 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); diff --git a/util/fipsdist.pl b/util/fipsdist.pl index 621f90493e..f660c20412 100644 --- a/util/fipsdist.pl +++ b/util/fipsdist.pl @@ -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, -- 2.25.1