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

From 3f6efbf2df1ba8c344695eaf789e2490192335a2 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.

(cherry picked from commit d63b3376a4fc2d5e8de8d0e0d0bca4d0da4f8f2e)
---
 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")