From afa4b386718a75f5fbb7f66a09ebba72a7030fe9 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sun, 29 May 2011 13:48:57 +0000 Subject: [PATCH] sha1-586|x86_64.pl: minor portability fix. --- crypto/sha/asm/sha1-586.pl | 2 +- crypto/sha/asm/sha1-x86_64.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/sha/asm/sha1-586.pl b/crypto/sha/asm/sha1-586.pl index ac1c9e9ded..1084d227fe 100644 --- a/crypto/sha/asm/sha1-586.pl +++ b/crypto/sha/asm/sha1-586.pl @@ -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 diff --git a/crypto/sha/asm/sha1-x86_64.pl b/crypto/sha/asm/sha1-x86_64.pl index 5414489d69..61ec16911b 100755 --- a/crypto/sha/asm/sha1-x86_64.pl +++ b/crypto/sha/asm/sha1-x86_64.pl @@ -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/ && -- 2.25.1