$objs .= " $ENV{$_}";
}
+my $noec2m = 0;
+
my @objlist = split / /, $objs;
$cdirs{perlasm} = 1;
-if (exists $ENV{NOEC2M})
+$noec2m = 1 if (exists $ENV{NOEC2M});
+
+if ($noec2m)
{
delete $tarobjs{"bn_gf2m.c"};
delete $tarobjs{"ec2_mult.c"};
delete $tarobjs{"ec2_smpl.c"};
- delete $tarobjs{"armv4-gf2m.pl"};
- delete $tarobjs{"x86-gf2m.pl"};
}
my %keep =
{
# Skip unused directories under crypto/
next if -d "crypto/$1" && !exists $cdirs{$1};
+ # Skip GF2m assembly language perl scripts
+ next if $noec2m && /gf2m\.pl/;
# Keep assembly language dir, Makefile or certain extensions
if (!/\/asm\// && !/\/Makefile$/ && !/\.(in|pl|h|S)$/)
{