diff --git a/CMake/resources.cmake b/CMake/resources.cmake index 0218813c9..8db0385ef 100644 --- a/CMake/resources.cmake +++ b/CMake/resources.cmake @@ -110,6 +110,9 @@ if(LIB_dl) set(CMAKE_REQUIRED_LIBRARIES ${LIB_dl}) CHECK_FUNCTION_EXISTS(dlsym HAVE_DLSYM) set(CMAKE_REQUIRED_LIBRARIES) +else() +# test also for systems where dlsym() is not in libdl (e.g., NetBSD, FreeBSD) + CHECK_FUNCTION_EXISTS(dlsym HAVE_DLSYM) endif(LIB_dl) CHECK_FUNCTION_EXISTS(localeconv HAVE_LOCALECONV)