From e189159b627a61a04384689b5bdac4b8fed356c4 Mon Sep 17 00:00:00 2001 From: Nuru Date: Sun, 8 Dec 2024 16:18:41 -0800 Subject: [PATCH] Install AMD64 binary on Apple Silicon Macs --- vendor/cfssl/Makefile | 7 +++++-- vendor/cfssljson/Makefile | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/vendor/cfssl/Makefile b/vendor/cfssl/Makefile index 722d416ee0..f67741576c 100644 --- a/vendor/cfssl/Makefile +++ b/vendor/cfssl/Makefile @@ -6,8 +6,11 @@ export PACKAGE_REPO_NAME = cfssl export DOWNLOAD_URL = $(PACKAGE_REPO_URL)/releases/download/v$(PACKAGE_VERSION)/$(PACKAGE_NAME)_$(PACKAGE_VERSION)_$(OS)_$(ARCH) export APK_BUILD_TEMPLATE ?= APKBUILD.github-binary -# arm64 not supported -export PACKAGE_ARCHS_DISABLED = arm64 +# arm64 not supported on MacOS, but OK to install AMD64 version +ifeq ($(OS),darwin) + ARCH = amd64 +endif +# export PACKAGE_ARCHS_DISABLED = arm64 install: $(call download_binary) diff --git a/vendor/cfssljson/Makefile b/vendor/cfssljson/Makefile index ac0592ad6c..308f756bc8 100644 --- a/vendor/cfssljson/Makefile +++ b/vendor/cfssljson/Makefile @@ -7,8 +7,11 @@ export PACKAGE_REPO_NAME = cfssl export DOWNLOAD_URL = $(PACKAGE_REPO_URL)/releases/download/v$(PACKAGE_VERSION)/$(PACKAGE_NAME)_$(PACKAGE_VERSION)_$(OS)_$(ARCH) export APK_BUILD_TEMPLATE ?= APKBUILD.github-binary -# arm64 not supported -export PACKAGE_ARCHS_DISABLED = arm64 +# arm64 not supported on MacOS, but OK to install AMD64 version +ifeq ($(OS),darwin) + ARCH = amd64 +endif +# export PACKAGE_ARCHS_DISABLED = arm64 install: $(call download_binary)