提交 524289ba 编写于 作者: D Dr. Stephen Henson

Get OPENSSL_FIPSSYMS from environment in fipsas.pl, include ppccap.c and .S

files in fipsdist.
上级 2677d856
...@@ -17,12 +17,9 @@ if ($ARGS[0] eq "norunasm") ...@@ -17,12 +17,9 @@ if ($ARGS[0] eq "norunasm")
shift @ARGS; shift @ARGS;
} }
# HACK to disable operation if no OPENSSL_FIPSSYMS option.
# will go away when tested more fully.
my $enabled = 0; my $enabled = 0;
foreach (@ARGS) { $enabled = 1 if /-DOPENSSL_FIPSSYMS/ ; } $enabled = 1 if $ENV{CFLAG} =~ /-DOPENSSL_FIPSSYMS/;
if ($enabled == 0 && $runasm) if ($enabled == 0 && $runasm)
{ {
......
...@@ -17,7 +17,7 @@ foreach (@objlist) { $tarobjs{"$1.c"} = 1 if /([^\/]+).o$/}; ...@@ -17,7 +17,7 @@ foreach (@objlist) { $tarobjs{"$1.c"} = 1 if /([^\/]+).o$/};
$tarobjs{"ncbc_enc.c"} = 1; $tarobjs{"ncbc_enc.c"} = 1;
$tarobjs{"mem_clr.c"} = 1; $tarobjs{"mem_clr.c"} = 1;
$tarobjs{"ppc_cap.c"} = 1; $tarobjs{"ppccap.c"} = 1;
foreach (split / /, $ENV{LINKDIRS} ) { $cdirs{$_} = 1 }; foreach (split / /, $ENV{LINKDIRS} ) { $cdirs{$_} = 1 };
...@@ -58,7 +58,7 @@ while (<STDIN>) ...@@ -58,7 +58,7 @@ while (<STDIN>)
# Skip unused directories under crypto/ # Skip unused directories under crypto/
next if -d "crypto/$1" && !exists $cdirs{$1}; next if -d "crypto/$1" && !exists $cdirs{$1};
# Keep assembly language dir, Makefile or certain extensions # Keep assembly language dir, Makefile or certain extensions
if (!/\/asm\// && !/\/Makefile$/ && !/\.(in|pl|h)$/) if (!/\/asm\// && !/\/Makefile$/ && !/\.(in|pl|h|S)$/)
{ {
# If C source file must be on list. # If C source file must be on list.
next if !/(\w+\.c)$/ || !exists $tarobjs{$1}; next if !/(\w+\.c)$/ || !exists $tarobjs{$1};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册