SDL_mixer: Add Mix_Version to symbol version script

From dd8fd8547b935521d8a0bf2b4701fd1949e2f999 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 15 May 2024 22:46:44 +0200
Subject: [PATCH] Add Mix_Version to symbol version script

---
 cmake/PrivateSdlFunctions.cmake | 1 +
 src/SDL_mixer.sym               | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/cmake/PrivateSdlFunctions.cmake b/cmake/PrivateSdlFunctions.cmake
index 47d820d0..3af2b119 100644
--- a/cmake/PrivateSdlFunctions.cmake
+++ b/cmake/PrivateSdlFunctions.cmake
@@ -289,6 +289,7 @@ function(sdl_target_link_option_version_file TARGET VERSION_SCRIPT)
     check_linker_support_version_script(HAVE_WL_VERSION_SCRIPT)
     if(HAVE_WL_VERSION_SCRIPT)
         target_link_options(${TARGET} PRIVATE "-Wl,--version-script=${VERSION_SCRIPT}")
+        set_property(TARGET ${TARGET} APPEND PROPERTY LINK_DEPENDS "${VERSION_SCRIPT}")
     else()
         if(LINUX OR ANDROID)
             message(FATAL_ERROR "Linker does not support '-Wl,--version-script=xxx.sym'. This is required on the current host platform.")
diff --git a/src/SDL_mixer.sym b/src/SDL_mixer.sym
index 9710c436..e094cbc0 100644
--- a/src/SDL_mixer.sym
+++ b/src/SDL_mixer.sym
@@ -51,7 +51,6 @@ SDL3_mixer_0.0.0 {
     Mix_HookMusic;
     Mix_HookMusicFinished;
     Mix_Init;
-    Mix_Linked_Version;
     Mix_LoadMUS;
     Mix_LoadMUSType_IO;
     Mix_LoadMUS_IO;
@@ -95,6 +94,7 @@ SDL3_mixer_0.0.0 {
     Mix_StartTrack;
     Mix_UnregisterAllEffects;
     Mix_UnregisterEffect;
+    Mix_Version;
     Mix_Volume;
     Mix_VolumeChunk;
     Mix_VolumeMusic;