From 7d66e6a849715b641939e730fc5723e147f02e52 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Fri, 18 Sep 2026 20:14:40 -0400 Subject: [PATCH] [cmake] Replace harccoded dl with CMAKE_DL_LIBS OpenBSD does not have libdl. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2228b2fc1..a94b5b6c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -215,7 +215,7 @@ endif() if(WIN32) target_link_libraries(libhl ws2_32 user32 winmm) else() - target_link_libraries(libhl m dl) + target_link_libraries(libhl m ${CMAKE_DL_LIBS}) if(ANDROID) target_link_libraries(libhl log)