mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
sha1-586|x86_64.pl: minor portability fix.
This commit is contained in:
parent
18f5603c53
commit
afa4b38671
@ -108,7 +108,7 @@ $xmm=$ymm=0;
|
||||
for (@ARGV) { $xmm=1 if (/-DOPENSSL_IA32_SSE2/); }
|
||||
|
||||
$ymm=1 if ($xmm &&
|
||||
`$ENV{CC} -Wa,-V -c -o /dev/null -x assembler /dev/null 2>&1`
|
||||
`$ENV{CC} -Wa,-v -c -o /dev/null -x assembler /dev/null 2>&1`
|
||||
=~ /GNU assembler version ([2-9]\.[0-9]+)/ &&
|
||||
$1>=2.19); # first version supporting AVX
|
||||
|
||||
|
@ -72,7 +72,7 @@ $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
|
||||
( $xlate="${dir}../../perlasm/x86_64-xlate.pl" and -f $xlate) or
|
||||
die "can't locate x86_64-xlate.pl";
|
||||
|
||||
$avx=1 if (`$ENV{CC} -Wa,-V -c -o /dev/null -x assembler /dev/null 2>&1`
|
||||
$avx=1 if (`$ENV{CC} -Wa,-v -c -o /dev/null -x assembler /dev/null 2>&1`
|
||||
=~ /GNU assembler version ([2-9]\.[0-9]+)/ &&
|
||||
$1>=2.19);
|
||||
$avx=1 if (!$avx && $flavour =~ /nasm/ &&
|
||||
|
Loading…
Reference in New Issue
Block a user