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

Author: Xenofon Karamanos <[email protected]>
Committer: Xenofon Karamanos <[email protected]>
Date: 2025-12-09T14:00:10+01:00

cmake: Don't USE_FUTEX for arm64/aarch64

---

Modified: cmake/lock_methods.cmake

---

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

---

diff --git a/cmake/lock_methods.cmake b/cmake/lock_methods.cmake
index e77492a4a06..ddb9fd19107 100644
--- a/cmake/lock_methods.cmake
+++ b/cmake/lock_methods.cmake
@@ -34,6 +34,11 @@ endif()
 find_path(FUTEX_HEADER_DIR linux/futex.h)
 if(FUTEX_HEADER_DIR)
   set(_HAVE_FUTEX TRUE)
+  # Unfortunately, arm64 and aarch64 does not have yet implemented the 
nessecary defines
+  # and operations in atomic_arm.h needed for the futexlock.h
+  if("${TARGET_ARCH}" MATCHES "aarch64$|arm64$")
+    set(_HAVE_FUTEX FALSE)
+  endif()
 else()
   set(_HAVE_FUTEX FALSE)
 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!

Reply via email to