[ fix ] fix macos ci

This commit is contained in:
Steve Dunham 2024-04-27 11:50:00 -07:00
parent 2298f8837b
commit bed2013328

View File

@ -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