From 7871d5903025cfa91b8c0f6120a9f47254711e42 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Fri, 17 Oct 2025 21:17:04 +0100 Subject: [PATCH] Fix OpenBSD build --- cmake/platforms/unix.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmake/platforms/unix.cmake b/cmake/platforms/unix.cmake index caf326c9..9ff71be0 100644 --- a/cmake/platforms/unix.cmake +++ b/cmake/platforms/unix.cmake @@ -16,7 +16,12 @@ if(USE_HTTP) list(APPEND CLIENT_PLATFORM_SOURCES ${SOURCE_DIR}/client/cl_http_curl.c) endif() +if(NOT BSD) + list(APPEND COMMON_LIBRARIES + dl # Dynamic loader + ) +endif() + list(APPEND COMMON_LIBRARIES - dl # Dynamic loader m # Math library )