Module: kamailio Branch: master Commit: 73d2ffe0f39d27376ea2e4082d1cbf317a80623d URL: https://github.com/kamailio/kamailio/commit/73d2ffe0f39d27376ea2e4082d1cbf317a80623d
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-01-14T23:21:37+01:00 tlsa: CMakeLists.txt - search and link to static ssl, crypto and z libs - GH #4552 --- Modified: src/modules/tlsa/CMakeLists.txt --- Diff: https://github.com/kamailio/kamailio/commit/73d2ffe0f39d27376ea2e4082d1cbf317a80623d.diff Patch: https://github.com/kamailio/kamailio/commit/73d2ffe0f39d27376ea2e4082d1cbf317a80623d.patch --- diff --git a/src/modules/tlsa/CMakeLists.txt b/src/modules/tlsa/CMakeLists.txt index a11e6e88b50..6f557ea7d40 100644 --- a/src/modules/tlsa/CMakeLists.txt +++ b/src/modules/tlsa/CMakeLists.txt @@ -13,8 +13,14 @@ if(LIBSSL_STATIC_SRCLIB) else() # Static linking with system libraries Note: This assumes the static # libraries are installed in a standard location - set(OPENSSL_USE_STATIC_LIBS TRUE) - find_package(OpenSSL REQUIRED) + set(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES}) + + find_library(SSL_ALIB libssl.a REQUIRED) + find_library(CRYPTO_ALIB libcrypto.a REQUIRED) + find_library(Z_ALIB libz.a REQUIRED) + #set(OPENSSL_USE_STATIC_LIBS TRUE) + #find_package(OpenSSL REQUIRED) # TODO: Check if this is needed: -Wl,-Bstatic - target_link_libraries(${module_name} PRIVATE OpenSSL::SSL OpenSSL::Crypto ZLIB::ZLIB) + #target_link_libraries(${module_name} PRIVATE OpenSSL::SSL OpenSSL::Crypto ZLIB::ZLIB) + target_link_libraries(${module_name} PRIVATE ${SSL_ALIB} ${CRYPTO_ALIB} ${Z_ALIB}) endif() _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
