SDL_image: Add workaround for broken SDL2 2.30.10 MinGW release

From 391eb3ea1b27f4965fa59588a783e39b6b4369d4 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sun, 8 Dec 2024 04:38:19 +0100
Subject: [PATCH] Add workaround for broken SDL2 2.30.10 MinGW release

[ci skip]
---
 build-scripts/release-info.json | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/build-scripts/release-info.json b/build-scripts/release-info.json
index c4ede00b..4632e93e 100644
--- a/build-scripts/release-info.json
+++ b/build-scripts/release-info.json
@@ -36,7 +36,8 @@
       "archs": ["x86", "x64"],
       "args": [
         "--with-sdl-prefix=@<@DEP_PREFIX@>@",
-        "LDFLAGS=-L@<@PROJECT_ROOT@>@/VisualC/external/optional/@<@ARCH@>@",
+        "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",
         "LIBAVIF_CFLAGS=-I@<@PROJECT_ROOT@>@/VisualC/external/include",
         "LIBAVIF_LIBS=-L@<@PROJECT_ROOT@>@/VisualC/external/optional/@<@ARCH@>@",
         "LIBTIFF_CFLAGS=-I@<@PROJECT_ROOT@>@/VisualC/external/include",