diff --git a/CMakeLists.txt b/CMakeLists.txt index b23d067..131c3e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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