SDL_mixer: Add workaround for broken SDL2 2.30.10 MinGW release (a985c)

From a985c11425db1e7a477e4b0c7e30dbc356163e94 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Tue, 17 Dec 2024 13:47:04 +0100
Subject: [PATCH] Add workaround for broken SDL2 2.30.10 MinGW release

[ci skip]

(cherry picked from commit 8d3840832fa1d472b362ea8c68856f23f89557c6)
---
 build-scripts/release-info.json | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build-scripts/release-info.json b/build-scripts/release-info.json
index 841fd888..8cf88853 100644
--- a/build-scripts/release-info.json
+++ b/build-scripts/release-info.json
@@ -36,8 +36,8 @@
       "archs": ["x86", "x64"],
       "args": [
         "--with-sdl-prefix=@<@DEP_PREFIX@>@",
-        "CFLAGS=-O2",
-        "LDFLAGS=-Wl,-s",
+        "CFLAGS=-O2 -I@<@DEP_PREFIX@>@/include -I@<@DEP_PREFIX@>@/include/SDL2",
+        "LDFLAGS=-Wl,-s -L@<@PROJECT_ROOT@>@/VisualC/external/optional/@<@ARCH@>@ -L@<@DEP_PREFIX@>@/lib -lSDL2",
         "GME_CFLAGS=-I@<@PROJECT_ROOT@>@/VisualC/external/include",
         "GME_LIBS=-L@<@PROJECT_ROOT@>@/VisualC/external/optional/@<@ARCH@>@",
         "OPUSFILE_CFLAGS=-I@<@PROJECT_ROOT@>@/VisualC/external/include",