From bd5e3ccec42811bf40435c930a38f6fbd0ec8f22 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 17 Jan 2020 12:35:27 +0000 Subject: [PATCH] openssl: make sure tests have -ldl v2 https://github.com/warmcat/libwebsockets/issues/1662 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 751765926..8b064982e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1849,6 +1849,11 @@ if (LWS_HAVE_LIBCAP) list(APPEND LIB_LIST cap ) endif() +if (UNIX) + list(APPEND LIB_LIST dl) +endif() + + # Setup the linking for all libs. foreach (lib ${LWS_LIBRARIES}) target_link_libraries(${lib} ${LIB_LIST})