summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
Diffstat (limited to 'CMake')
-rw-r--r--CMake/resources.cmake3
1 files changed, 3 insertions, 0 deletions
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)