shared lib linkage build fix for OpenBSD.

disable purposely --no-undefined for this platform.
This commit is contained in:
David Carlier
2022-02-15 20:58:39 +00:00
committed by Matthew Parkinson
parent 95bd974fb0
commit c27dd10c39

View File

@@ -233,7 +233,9 @@ else()
endif()
endif()
check_linker_flag(CXX "-Wl,--no-undefined" SNMALLOC_LINKER_SUPPORT_NO_ALLOW_SHLIB_UNDEF)
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
check_linker_flag(CXX "-Wl,--no-undefined" SNMALLOC_LINKER_SUPPORT_NO_ALLOW_SHLIB_UNDEF)
endif()
function(add_warning_flags name)
target_compile_options(${name} PRIVATE