From d6360e19e63fe6af162f2e139502c9946203528f Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sun, 19 Jul 2026 05:15:32 +0300
Subject: [PATCH] dylib_locations[]: add missing trailing slash to
"/Library/Frameworks"
Fixes: https://github.com/libsdl-org/sdl12-compat/issues/398
---
src/SDL12_compat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index 34635e27d..616a0ea4a 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -1304,7 +1304,7 @@ static char loaderror[256];
"@executable_path/" SDL20_LIBNAME2, /* MyApp.app/Contents/MacOS/libSDL2-2.0.dylib */
"@executable_path/../Frameworks/" SDL20_FRAMEWORK, /* MyApp.app/Contents/Frameworks/SDL2.framework */
NULL, /* /Users/username/Library/Frameworks/SDL2.framework */
- "/Library/Frameworks" SDL20_FRAMEWORK, /* /Library/Frameworks/SDL2.framework */
+ "/Library/Frameworks/" SDL20_FRAMEWORK, /* /Library/Frameworks/SDL2.framework */
SDL20_LIBNAME, /* oh well, anywhere the system can see the .dylib (/usr/local/lib or whatever) */
SDL20_LIBNAME2
};