Skip to content

Commit

Permalink
cmake: don't use -Wl,-undefined,error on OpenBSD when building vendor…
Browse files Browse the repository at this point in the history
…ed libavif, either.
  • Loading branch information
sezero committed Jan 4, 2025
1 parent 1ca9bd8 commit 7ed0727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ if(SDLIMAGE_AVIF)
if(NOT SDLIMAGE_AVIF_SHARED)
list(APPEND PC_LIBS -l$<TARGET_FILE_BASE_NAME:avif>)
endif()
if(NOT MSVC)
if(NOT MSVC AND NOT CMAKE_SYSTEM_NAME MATCHES ".*OpenBSD.*")
sdl_check_linker_flag("-Wl,--no-undefined" LINKER_SUPPORTS_WL_NO_UNDEFINED)
if(LINKER_SUPPORTS_WL_NO_UNDEFINED)
target_link_options(avif PRIVATE "-Wl,--no-undefined")
Expand Down

0 comments on commit 7ed0727

Please sign in to comment.