Skip to content

Commit

Permalink
cmake: -Wl,-undefined,error should not be used on OpenBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Dec 14, 2024
1 parent 6f8b236 commit c35c94e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/PrivateSdlFunctions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c35c94e

Please sign in to comment.