From 75fb3c3be40c22165155019e9cf32e10d3f0cd7e Mon Sep 17 00:00:00 2001 From: Mdaiki0730 Date: Fri, 25 Nov 2022 17:40:59 +0900 Subject: [PATCH] Make libsodium compatible with M1 Mac --- crypto/vrf/internal/vrf/vrf.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crypto/vrf/internal/vrf/vrf.go b/crypto/vrf/internal/vrf/vrf.go index aebbde992..48c6694cd 100644 --- a/crypto/vrf/internal/vrf/vrf.go +++ b/crypto/vrf/internal/vrf/vrf.go @@ -8,6 +8,8 @@ package vrf #cgo CFLAGS: -Wall -std=c99 #cgo darwin,amd64 CFLAGS: -I./sodium/darwin_amd64/include/ #cgo darwin,amd64 LDFLAGS: -L./sodium/darwin_amd64/lib -lsodium +#cgo darwin,arm64 CFLAGS: -I./sodium/darwin_arm64/include/ +#cgo darwin,arm64 LDFLAGS: -L./sodium/darwin_arm64/lib -lsodium #cgo linux,amd64 CFLAGS: -I./sodium/linux_amd64/include #cgo linux,amd64 LDFLAGS: -L./sodium/linux_amd64/lib -lsodium #cgo linux,arm64 CFLAGS: -I./sodium/linux_arm64/include