From c35c94e0bf36ca37b8c985fc62de8ce62b9c394d Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Sat, 14 Dec 2024 21:09:32 +0100 Subject: [PATCH] cmake: -Wl,-undefined,error should not be used on OpenBSD --- cmake/PrivateSdlFunctions.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/PrivateSdlFunctions.cmake b/cmake/PrivateSdlFunctions.cmake index 0bd77bb2..5fde085f 100644 --- a/cmake/PrivateSdlFunctions.cmake +++ b/cmake/PrivateSdlFunctions.cmake @@ -273,7 +273,7 @@ function(check_linker_support_version_script VAR) endfunction() 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()