$OpenBSD$

No -ldl

Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -794,7 +794,7 @@ elseif(UNIX)
     message(STATUS "Cross-compiling without CPU/HSA devices -> skipping LIBDL search")
   else()
 
-    find_library(DL_LIB "dl")
+    find_library(DL_LIB "c")
     find_file(DL_H "dlfcn.h")
     if(DL_LIB AND DL_H)
       message(STATUS "libdl found")
