diff --git a/config.mk b/config.mk index 4be454c9f6..8372535ef7 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)))