Skip to content

Commit

Permalink
[ fix ] Use HOMEBREW_PREFIX instead of /opt/homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
dunhamsteve committed Apr 27, 2024
1 parent 2e27921 commit 93bf394
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 93bf394

Please sign in to comment.