From 8cbe282abddff0e59bd5561b7ef549f03cf3785b Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Sat, 14 Dec 2024 21:40:36 +0100 Subject: [PATCH] cmake: -Wl,-undefined,error should not be used on OpenBSD (cherry picked from commit 1eb46c10710037edcdaa137c97fc791346de1ded) --- cmake/PrivateSdlFunctions.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/PrivateSdlFunctions.cmake b/cmake/PrivateSdlFunctions.cmake index b30f380a..1f3786c0 100644 --- a/cmake/PrivateSdlFunctions.cmake +++ b/cmake/PrivateSdlFunctions.cmake @@ -276,7 +276,7 @@ macro(sdl_check_linker_flag flag var) endmacro() function(sdl_target_link_options_no_undefined TARGET) - if(NOT MSVC) + if(NOT MSVC AND NOT CMAKE_SYSTEM_NAME MATCHES ".*OpenBSD.*") if(CMAKE_C_COMPILER_ID MATCHES "AppleClang") target_link_options(${TARGET} PRIVATE "-Wl,-undefined,error") else()