SDL: cmake: cannot detect deprecated apple-clang link options (they are not fatal) (8107d)

From 8107d5b042f105108818c6b914f92b30c30c7f5b Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Fri, 30 Jan 2026 18:49:12 +0100
Subject: [PATCH] cmake: cannot detect deprecated apple-clang link options
 (they are not fatal)

So skip these

(cherry picked from commit 5f151f45327caa54dcef4d2383ead25f4ed418af)
---
 CMakeLists.txt | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e782e03917233..3f9e27e1c04d1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -659,12 +659,7 @@ if(USE_GCC OR USE_CLANG OR USE_INTELCC OR USE_QCC)
     endif()
   endif()
 
-  if(APPLE)
-    check_linker_flag(C "-Wl,-undefined,error" LINKER_SUPPORTS_WL_UNDEFINED_ERROR)
-    if(LINKER_SUPPORTS_WL_UNDEFINED_ERROR)
-      sdl_shared_link_options("-Wl,-undefined,error")
-    endif()
-  elseif(NOT OPENBSD)
+  if(NOT OPENBSD)
     cmake_push_check_state()
     check_linker_flag(C "-Wl,--no-undefined" LINKER_SUPPORTS_WL_NO_UNDEFINED)
     #FIXME: originally this if had an additional "AND NOT (USE_CLANG AND WINDOWS)"