From bed20133282f3a72f0d2ee83b0dbe7aabde9ab00 Mon Sep 17 00:00:00 2001 From: Steve Dunham Date: Sat, 27 Apr 2024 11:50:00 -0700 Subject: [PATCH] [ fix ] fix macos ci --- config.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config.mk b/config.mk index f15620db59..4be454c9f6 100644 --- a/config.mk +++ b/config.mk @@ -36,6 +36,12 @@ else SHLIB_SUFFIX := .so endif +# Find homebrew's libgmp on ARM macs +ifneq (,$(wildcard /opt/homebrew/include/gmp.h)) + CPPFLAGS += -I/opt/homebrew/include + LDFLAGS += -L/opt/homebrew/lib +endif + ifneq (, $(findstring freebsd, $(MACHINE))) CFLAGS += -I$(shell /sbin/sysctl -n user.localbase)/include LDFLAGS += -L$(shell /sbin/sysctl -n user.localbase)/lib