SDL: The posix4 library has been merged into the libc library (d63b3)

From d63b3376a4fc2d5e8de8d0e0d0bca4d0da4f8f2e Mon Sep 17 00:00:00 2001
From: Dragon-Baroque <[EMAIL REDACTED]>
Date: Wed, 19 Mar 2025 23:39:53 +0100
Subject: [PATCH] The posix4 library has been merged into the libc library

Backported from commit 07e4dea6934f84f937e904ef195666011e269473.
Reference issue: https://github.com/libsdl-org/SDL/issues/12588.
---
 cmake/sdlchecks.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake
index ac36cfa2d7ed1..ea4c0ff4300ea 100644
--- a/cmake/sdlchecks.cmake
+++ b/cmake/sdlchecks.cmake
@@ -966,7 +966,7 @@ macro(CheckPTHREAD)
       if(CMAKE_C_COMPILER_ID MATCHES "SunPro")
         set(PTHREAD_LDFLAGS "-mt -lpthread")
       else()
-        set(PTHREAD_LDFLAGS "-pthread -lposix4")
+        set(PTHREAD_LDFLAGS "-pthread")
       endif()
     elseif(SYSV5)
       set(PTHREAD_CFLAGS "-D_REENTRANT -Kthread")