From db5d5a31e7e492197f1ea88f4b4bdab847723d52 Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Sun, 19 May 2024 23:39:00 -0700 Subject: [PATCH] Add -rpath /Library/Frameworks to accommodate newer macOS releases (#505) On or before macOS Ventura's release, defaulting the @rpath to include /Library/Frameworks stopped. Since we expect the SDL2 framework to be installed there we must add a -rpath option. This should be backwards compatible with older macOS releases. (verified on Catalina but nothing older) --- bin/makefile-darwin.aarch64-sdl | 2 +- bin/makefile-darwin.x86_64-sdl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/makefile-darwin.aarch64-sdl b/bin/makefile-darwin.aarch64-sdl index a527eb7..d5ae47e 100644 --- a/bin/makefile-darwin.aarch64-sdl +++ b/bin/makefile-darwin.aarch64-sdl @@ -11,7 +11,7 @@ OPTFLAGS = -O2 -g DEBUGFLAGS = # -DDEBUG -DOPTRACE DFLAGS = $(DEBUGFLAGS) $(SDLFLAGS) -DRELEASE=351 -LDFLAGS = -F /Library/Frameworks -framework SDL2 +LDFLAGS = -rpath /Library/Frameworks -F /Library/Frameworks -framework SDL2 LDELDFLAGS = OBJECTDIR = ../$(RELEASENAME)/ diff --git a/bin/makefile-darwin.x86_64-sdl b/bin/makefile-darwin.x86_64-sdl index f84e13e..2d7f79b 100644 --- a/bin/makefile-darwin.x86_64-sdl +++ b/bin/makefile-darwin.x86_64-sdl @@ -11,7 +11,7 @@ OPTFLAGS = -O2 -g DEBUGFLAGS = # -DDEBUG -DOPTRACE DFLAGS = $(DEBUGFLAGS) $(SDLFLAGS) -DRELEASE=351 -LDFLAGS = -F /Library/Frameworks -framework SDL2 +LDFLAGS = -rpath /Library/Frameworks -F /Library/Frameworks -framework SDL2 LDELDFLAGS = OBJECTDIR = ../$(RELEASENAME)/