From 7c2927f6dd238f007f9734e0b01bc9b314ef7e21 Mon Sep 17 00:00:00 2001 From: O01eg Date: Wed, 25 Dec 2024 09:50:58 +0400 Subject: [PATCH] Fix so-names for SDL on MacOS --- patches/sdl/0002-CMake-Remove-so-names.patch | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 patches/sdl/0002-CMake-Remove-so-names.patch diff --git a/patches/sdl/0002-CMake-Remove-so-names.patch b/patches/sdl/0002-CMake-Remove-so-names.patch new file mode 100644 index 0000000..f37a4a2 --- /dev/null +++ b/patches/sdl/0002-CMake-Remove-so-names.patch @@ -0,0 +1,27 @@ +From 3afda049162863750b849908338991b1e77803fe Mon Sep 17 00:00:00 2001 +From: O01eg +Date: Wed, 25 Dec 2024 09:49:41 +0400 +Subject: [PATCH 2/2] CMake: Remove so-names + +--- + CMakeLists.txt | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a596eec..37bab7c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3290,9 +3290,7 @@ if(SDL_SHARED) + if(APPLE) + # FIXME: Remove SOVERSION in SDL3 + set_target_properties(SDL2 PROPERTIES +- MACOSX_RPATH 1 +- SOVERSION 0 +- OUTPUT_NAME "SDL2-${LT_RELEASE}") ++ MACOSX_RPATH 1) + elseif(UNIX AND NOT ANDROID) + set_target_properties(SDL2 PROPERTIES + VERSION ${LT_VERSION} +-- +2.45.2 +