security/openssl: Fix build on aarch64

* Upstream only partly merged changes

PR:		259937, 260572
Reported by:	allanjude, "Naram Qashat" <cyberbotx cyberbotx com>
This commit is contained in:
Bernard Spil 2021-12-20 18:03:30 +00:00
parent 512fb19b7c
commit f64391dd01
2 changed files with 17 additions and 0 deletions

View file

@ -2,6 +2,7 @@
PORTNAME= openssl
PORTVERSION= 1.1.1m
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= security devel
MASTER_SITES= https://www.openssl.org/source/ \

View file

@ -0,0 +1,16 @@
--- Configurations/10-main.conf.orig 2021-12-14 15:45:01 UTC
+++ Configurations/10-main.conf
@@ -988,6 +988,13 @@ my %targets = (
perlasm_scheme => "elf",
},
+ "BSD-aarch64" => {
+ inherit_from => [ "BSD-generic64", asm("aarch64_asm") ],
+ lib_cppflags => add("-DL_ENDIAN"),
+ bn_ops => "SIXTY_FOUR_BIT_LONG",
+ perlasm_scheme => "linux64",
+ },
+
"bsdi-elf-gcc" => {
inherit_from => [ "BASE_unix", asm("x86_elf_asm") ],
CC => "gcc",