Module: kamailio Branch: master Commit: 8006cc7d72b71b1e65c7f6eabead72593d03fcd6 URL: https://github.com/kamailio/kamailio/commit/8006cc7d72b71b1e65c7f6eabead72593d03fcd6
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-01-14T19:24:01+01:00 tlsa: CMakeLists.txt - the module has to be always linked with static libs - removed condition on LIBSSL_STATIC --- Modified: src/modules/tlsa/CMakeLists.txt --- Diff: https://github.com/kamailio/kamailio/commit/8006cc7d72b71b1e65c7f6eabead72593d03fcd6.diff Patch: https://github.com/kamailio/kamailio/commit/8006cc7d72b71b1e65c7f6eabead72593d03fcd6.patch --- diff --git a/src/modules/tlsa/CMakeLists.txt b/src/modules/tlsa/CMakeLists.txt index a72f900d866..a11e6e88b50 100644 --- a/src/modules/tlsa/CMakeLists.txt +++ b/src/modules/tlsa/CMakeLists.txt @@ -6,25 +6,15 @@ add_library(${module_name} SHARED ${MODULE_SOURCES}) find_package(ZLIB REQUIRED) find_package(Threads REQUIRED) -# TODO: Probably all thesse are not need because if OpenSSL can't be found it -# will fail and ask to set variables like OPENSSL_ROOT_DIR, OPENSSL_INCLUDE_DIR -# and LIBRARIES -if(LIBSSL_STATIC) - target_compile_definitions(${module_name} KSR_LIBSSL_STATIC) - if(LIBSSL_STATIC_SRCLIB) - target_include_directories(${module_name} PRIVATE ${LIBSSL_STATIC_SRCPATH}/include) - target_link_directories(${module_name} PRIVATE ${LIBSSL_STATIC_SRCPATH}) - 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) - # TODO: Check if this is needed: -Wl,-Bstatic - target_link_libraries(${module_name} PRIVATE OpenSSL::SSL OpenSSL::Crypto ZLIB::ZLIB) - endif() +target_compile_definitions(${module_name} PRIVATE KSR_LIBSSL_STATIC) +if(LIBSSL_STATIC_SRCLIB) + target_include_directories(${module_name} PRIVATE ${LIBSSL_STATIC_SRCPATH}/include) + target_link_directories(${module_name} PRIVATE ${LIBSSL_STATIC_SRCPATH}) 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) - target_link_libraries( - ${module_name} PRIVATE OpenSSL::SSL OpenSSL::Crypto ZLIB::ZLIB Threads::Threads - ) + # TODO: Check if this is needed: -Wl,-Bstatic + target_link_libraries(${module_name} PRIVATE OpenSSL::SSL OpenSSL::Crypto ZLIB::ZLIB) 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!
