From 93bf394370a95b54bd64c8f50fb288b9933c38af Mon Sep 17 00:00:00 2001 From: Steve Dunham Date: Sat, 27 Apr 2024 14:51:25 -0700 Subject: [PATCH] [ fix ] Use HOMEBREW_PREFIX instead of /opt/homebrew --- config.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.mk b/config.mk index 4be454c9f..8372535ef 100644 --- a/config.mk +++ b/config.mk @@ -37,9 +37,9 @@ else 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 +ifneq (,$(wildcard ${HOMEBREW_PREFIX}/include/gmp.h)) + CPPFLAGS += -I${HOMEBREW_PREFIX}/include + LDFLAGS += -L${HOMEBREW_PREFIX}/lib endif ifneq (, $(findstring freebsd, $(MACHINE)))