Skip to content

Commit d842d52

Browse files
committed
cmake: -Wl,-undefined,error should not be used on OpenBSD
1 parent c407036 commit d842d52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/PrivateSdlFunctions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ function(check_linker_support_version_script VAR)
273273
endfunction()
274274

275275
function(sdl_target_link_options_no_undefined TARGET)
276-
if(NOT MSVC)
276+
if(NOT MSVC AND NOT CMAKE_SYSTEM_NAME MATCHES ".*OpenBSD.*")
277277
if(CMAKE_C_COMPILER_ID MATCHES "AppleClang")
278278
target_link_options(${TARGET} PRIVATE "-Wl,-undefined,error")
279279
else()

0 commit comments

Comments
 (0)