Skip to content

Commit 3758887

Browse files
Makefile: Account for differing Homebrew prefixes between Intel & ARM
[see https://docs.brew.sh/FAQ#why-is-the-default-installation-prefix-opthomebrew-on-apple-silicon see also Render96/Render96ex#48]
1 parent 24baacc commit 3758887

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ ifeq ($(HOST_OS),Darwin)
229229
CC := gcc-$(OSX_GCC_VER)
230230
CXX := g++-$(OSX_GCC_VER)
231231
CPP := cpp-$(OSX_GCC_VER) -P
232-
PLATFORM_CFLAGS := -I /usr/local/include
233-
PLATFORM_LDFLAGS := -L /usr/local/lib
232+
PLATFORM_CFLAGS := -I $(shell brew --prefix)/include
233+
PLATFORM_LDFLAGS := -L $(shell brew --prefix)/lib
234234
else
235235
$(error No suitable macOS toolchain found, have you installed Homebrew?)
236236
endif

0 commit comments

Comments
 (0)