From 2d0dd49482d1f273d99fc40e7b0adf99a8a108b4 Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Thu, 1 Feb 2024 11:41:39 +0100 Subject: [PATCH] Update Makefile --- platforms/macos/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/platforms/macos/Makefile b/platforms/macos/Makefile index bb2bb56..ec99ab7 100644 --- a/platforms/macos/Makefile +++ b/platforms/macos/Makefile @@ -6,11 +6,13 @@ LDFLAGS += -framework AppKit -framework UniformTypeIdentifiers include ../desktop-shared/Makefile.common -if [[ $(uname -m) == 'arm64' ]]; then - DYLIB_PATH=/opt/homebrew/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 -fi + DYLIB_PATH=/usr/local/opt/sdl2/lib +endif SDL_DYLIB=libSDL2-2.0.0.dylib APP_NAME=Gearcoleco