Skip to content

Commit 93bf394

Browse files
committed
[ fix ] Use HOMEBREW_PREFIX instead of /opt/homebrew
1 parent 2e27921 commit 93bf394

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: config.mk

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ else
3737
endif
3838

3939
# Find homebrew's libgmp on ARM macs
40-
ifneq (,$(wildcard /opt/homebrew/include/gmp.h))
41-
CPPFLAGS += -I/opt/homebrew/include
42-
LDFLAGS += -L/opt/homebrew/lib
40+
ifneq (,$(wildcard ${HOMEBREW_PREFIX}/include/gmp.h))
41+
CPPFLAGS += -I${HOMEBREW_PREFIX}/include
42+
LDFLAGS += -L${HOMEBREW_PREFIX}/lib
4343
endif
4444

4545
ifneq (, $(findstring freebsd, $(MACHINE)))

0 commit comments

Comments
 (0)