Hacks.
[windows-environment.git] / Patches / openssl-arm64.patch
1 From 4907cf01f63cc966a40d67eb2e030c4d8eb1d528 Mon Sep 17 00:00:00 2001
2 From: Stuart Carnie <stuart.carnie@gmail.com>
3 Date: Sat, 4 Jul 2020 11:41:43 -0700
4 Subject: [PATCH] Configuration: darwin64-arm64-cc for Apple silicon
5
6 ---
7  Configurations/10-main.conf | 8 ++++++++
8  1 file changed, 8 insertions(+)
9
10 diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf
11 index 3b07731db8fc..fdcdb6a51425 100644
12 --- a/Configurations/10-main.conf
13 +++ b/Configurations/10-main.conf
14 @@ -1557,6 +1557,14 @@ my %targets = (
15          bn_ops           => "SIXTY_FOUR_BIT_LONG",
16          perlasm_scheme   => "macosx",
17      },
18 +    "darwin64-arm64-cc" => {
19 +        inherit_from     => [ "darwin-common", asm("aarch64_asm") ],
20 +        CFLAGS           => add("-Wall"),
21 +        cflags           => add("-arch arm64"),
22 +        lib_cppflags     => add("-DL_ENDIAN"),
23 +        bn_ops           => "SIXTY_FOUR_BIT_LONG",
24 +        perlasm_scheme   => "ios64",
25 +    },
26  
27  ##### GNU Hurd
28      "hurd-x86" => {