SDL: Merge pull request #9953 from sharkwouter/fix-double-libs-in-pkgconfig

From 1803e6555f955614261d717f048e66ccc937eed1 Mon Sep 17 00:00:00 2001
From: Wouter Wijsman <[EMAIL REDACTED]>
Date: Mon, 3 Jun 2024 10:53:45 +0200
Subject: [PATCH] CMake: Prevent double SDL2 and SDL2main entries in sdl2.pc

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 960e4a04579ba..f40c752f2beab 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3158,7 +3158,7 @@ endif()
 
 # Clean up the different lists
 listtostr(EXTRA_LIBS _EXTRA_LIBS "-l")
-set(SDL_STATIC_LIBS ${SDL_LIBS} ${EXTRA_LDFLAGS} ${_EXTRA_LIBS})
+set(SDL_STATIC_LIBS ${EXTRA_LDFLAGS} ${_EXTRA_LIBS})
 list(REMOVE_DUPLICATES SDL_STATIC_LIBS)
 listtostr(SDL_STATIC_LIBS _SDL_STATIC_LIBS)
 set(SDL_STATIC_LIBS ${_SDL_STATIC_LIBS})