From: Allan Jude Date: Fri, 19 Nov 2021 18:58:51 +0000 (+0000) Subject: Detect arm64-*-*bsd and enable assembly optimizations X-Git-Tag: openssl-3.2.0-alpha1~3281 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e22f9d6d956ad583afe10b986519731c113ac80;p=thirdparty%2Fopenssl.git Detect arm64-*-*bsd and enable assembly optimizations Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/17084) --- diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf index 8414b34ed9a..9f8fb32a86c 100644 --- a/Configurations/10-main.conf +++ b/Configurations/10-main.conf @@ -1062,6 +1062,14 @@ my %targets = ( perlasm_scheme => "elf", }, + "BSD-aarch64" => { + inherit_from => [ "BSD-generic64" ], + lib_cppflags => add("-DL_ENDIAN"), + bn_ops => "SIXTY_FOUR_BIT_LONG", + asm_arch => 'aarch64', + perlasm_scheme => "linux64", + }, + "bsdi-elf-gcc" => { inherit_from => [ "BASE_unix" ], CC => "gcc", diff --git a/util/perl/OpenSSL/config.pm b/util/perl/OpenSSL/config.pm index d8be17cdc5f..e3802ade433 100755 --- a/util/perl/OpenSSL/config.pm +++ b/util/perl/OpenSSL/config.pm @@ -745,6 +745,7 @@ EOF [ 'ia64-.*-.*bsd.*', { target => "BSD-ia64" } ], [ 'x86_64-.*-dragonfly.*', { target => "BSD-x86_64" } ], [ 'amd64-.*-.*bsd.*', { target => "BSD-x86_64" } ], + [ 'arm64-.*-.*bsd.*', { target => "BSD-aarch64" } ], [ '.*86.*-.*-.*bsd.*', sub { # mimic ld behaviour when it's looking for libc...