diff --git a/platforms/macos/Makefile b/platforms/macos/Makefile index eef79852..33161d98 100644 --- a/platforms/macos/Makefile +++ b/platforms/macos/Makefile @@ -6,7 +6,14 @@ LDFLAGS += -framework AppKit -framework UniformTypeIdentifiers include ../desktop-shared/Makefile.common -DYLIB_PATH=/usr/local/opt/sdl2/lib +# Brew use a different path on Apple Silicon as on Intel +UNAME_P := $(shell uname -m) +ifneq ($(filter arm64%,$(UNAME_P)),) + DYLIB_PATH=/opt/homebrew/lib/ +else + DYLIB_PATH=/usr/local/opt/sdl2/lib +endif + SDL_DYLIB=libSDL2-2.0.0.dylib APP_NAME=Gearsystem