diff options
author | Andy Polyakov <appro@openssl.org> | 2011-05-29 13:48:57 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2011-05-29 13:48:57 +0000 |
commit | afa4b386718a75f5fbb7f66a09ebba72a7030fe9 (patch) | |
tree | fdab664f1e512cbabe4859e64d1f8e98c90fee73 /crypto/sha/asm | |
parent | 18f5603c5333744ddbe55c963ffd88bb3f59b0d7 (diff) |
sha1-586|x86_64.pl: minor portability fix.
Diffstat (limited to 'crypto/sha/asm')
-rw-r--r-- | crypto/sha/asm/sha1-586.pl | 2 | ||||
-rwxr-xr-x | 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/ && |