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
(cherry picked from commit 1eb46c1)
  • Loading branch information
madebr committed Dec 14, 2024
1 parent 6597b4d commit 8cbe282
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 @@ -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()
Expand Down

0 comments on commit 8cbe282

Please sign in to comment.