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/); }
|
for (@ARGV) { $xmm=1 if (/-DOPENSSL_IA32_SSE2/); }
|
||||||
|
|
||||||
$ymm=1 if ($xmm &&
|
$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]+)/ &&
|
=~ /GNU assembler version ([2-9]\.[0-9]+)/ &&
|
||||||
$1>=2.19); # first version supporting AVX
|
$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
|
( $xlate="${dir}../../perlasm/x86_64-xlate.pl" and -f $xlate) or
|
||||||
die "can't locate x86_64-xlate.pl";
|
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]+)/ &&
|
=~ /GNU assembler version ([2-9]\.[0-9]+)/ &&
|
||||||
$1>=2.19);
|
$1>=2.19);
|
||||||
$avx=1 if (!$avx && $flavour =~ /nasm/ &&
|
$avx=1 if (!$avx && $flavour =~ /nasm/ &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user