Module: kamailio
Branch: master
Commit: ba74e43074eaf9df80f6b2d231c658bbc4b85db6
URL: 
https://github.com/kamailio/kamailio/commit/ba74e43074eaf9df80f6b2d231c658bbc4b85db6

Author: Xenofon Karamanos <[email protected]>
Committer: Xenofon Karamanos <[email protected]>
Date: 2026-01-19T18:39:15+02:00

tlsa: cmake: Add build workaround for riscv64

---

Modified: src/modules/tlsa/CMakeLists.txt

---

Diff:  
https://github.com/kamailio/kamailio/commit/ba74e43074eaf9df80f6b2d231c658bbc4b85db6.diff
Patch: 
https://github.com/kamailio/kamailio/commit/ba74e43074eaf9df80f6b2d231c658bbc4b85db6.patch

---

diff --git a/src/modules/tlsa/CMakeLists.txt b/src/modules/tlsa/CMakeLists.txt
index bee29269b9d..2527da510b1 100644
--- a/src/modules/tlsa/CMakeLists.txt
+++ b/src/modules/tlsa/CMakeLists.txt
@@ -10,8 +10,6 @@ unset(OPENSSL_SSL_LIBRARY CACHE)
 set(OPENSSL_USE_STATIC_LIBS TRUE)
 
 # Find packages
-find_package(Threads REQUIRED)
-
 target_compile_definitions(${module_name} PRIVATE KSR_LIBSSL_STATIC)
 if(LIBSSL_STATIC_SRCLIB)
   target_include_directories(${module_name} PRIVATE 
${LIBSSL_STATIC_SRCPATH}/include)
@@ -22,7 +20,10 @@ else()
   find_package(OpenSSL REQUIRED)
 
   # TODO: Check if this is needed: -Wl,-Bstatic
-  target_link_libraries(${module_name} PRIVATE OpenSSL::SSL OpenSSL::Crypto 
Threads::Threads)
+  target_link_libraries(${module_name} PRIVATE OpenSSL::SSL OpenSSL::Crypto)
+  if(TARGET_ARCH STREQUAL "riscv64")
+    target_link_options(${module_name} PRIVATE "-Wl,-Bsymbolic-functions")
+  endif()
 endif()
 
 # Reset variables to avoid interference with other modules

_______________________________________________
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!

Reply via email to