From b093f00e1a50946a6104eae436e4ffe7379fee5f Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 30 Oct 2025 22:21:14 +0300
Subject: [PATCH] update update-version.sh after commit e104b651c93fc
---
build-scripts/update-version.sh | 4 +++-
src/Makefile.darwin | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/build-scripts/update-version.sh b/build-scripts/update-version.sh
index ad8001b1..774b5bf1 100755
--- a/build-scripts/update-version.sh
+++ b/build-scripts/update-version.sh
@@ -44,13 +44,15 @@ perl -w -pi -e 's/(\#define SDL2_COMPAT_VERSION_PATCH\s+)\d+/${1}'${PATCH}'/;' s
if [[ "x$((${MINOR}%2))" = "x0" ]]; then
SOVER="$((100 * ${MINOR})).${PATCH}"
DYVER="$((100 * ${MINOR} + 1)).${PATCH}"
+ DYCOMPAT="$((100 * ${MINOR} + 1)).0"
else
SOVER="$((100 * ${MINOR} + ${PATCH})).0"
DYVER="$((100 * ${MINOR} + ${PATCH} + 1)).0"
+ DYCOMPAT="$((100 * ${MINOR} + ${PATCH} + 1)).0"
fi
perl -w -pi -e 's/(SHLIB\s+=\s+libSDL2-2\.0\.so\.0\.)\d+\.\d+/${1}'${SOVER}'/;' src/Makefile.linux
-perl -w -pi -e 's/(-Wl,-compatibility_version,)\d+\.\d+/${1}'${DYVER}'/;' src/Makefile.darwin
+perl -w -pi -e 's/(-Wl,-compatibility_version,)\d+\.\d+/${1}'${DYCOMPAT}'/;' src/Makefile.darwin
perl -w -pi -e 's/(-Wl,-current_version,)\d+.\d+/${1}'${DYVER}'/;' src/Makefile.darwin
echo "Running build-scripts/test-versioning.sh to verify changes..."
diff --git a/src/Makefile.darwin b/src/Makefile.darwin
index a1ab9fd4..2d66f61f 100644
--- a/src/Makefile.darwin
+++ b/src/Makefile.darwin
@@ -20,7 +20,7 @@ CFLAGS = -fPIC -fvisibility=hidden -O3 -Wall
LDFLAGS = -dynamiclib -Wl,-undefined,error -Wl,-single_module
#LDFLAGS+= -Wl,-headerpad_max_install_names
LDFLAGS+= -Wl,-install_name,"/usr/local/lib/$(DYLIB)"
-LDFLAGS+= -Wl,-compatibility_version,3201.59 -Wl,-current_version,3201.59
+LDFLAGS+= -Wl,-compatibility_version,3201.0 -Wl,-current_version,3201.59
LDLIBS = -Wl,-framework,AppKit
# this is needed for x86_64 - cross-gcc might not add it.
#LDLIBS += -Wl,-lbundle1.o