From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1060901

It has a patch like:

diff -ruN kamailio-5.7.3-bk/src/modules/app_jsdt/duk_config.h kamailio-5.7.3/src/modules/app_jsdt/duk_config.h
--- kamailio-5.7.3-bk/src/modules/app_jsdt/duk_config.h	2023-11-17 19:30:23.000000000 +0800
+++ kamailio-5.7.3/src/modules/app_jsdt/duk_config.h	2024-01-16 17:22:10.659716319 +0800
@@ -304,6 +304,10 @@
 #endif
 #endif /* __riscv */
 
+#if defined(__loongarch64)
+#define DUK_F_LOONGARCH64
+#endif
+
 /* SuperH */
 #if defined(__sh__) || defined(__sh1__) || defined(__SH1__)         \
 		|| defined(__sh2__) || defined(__SH2__) || defined(__sh3__) \
@@ -979,6 +983,11 @@
 /* SPARC byte order varies so rely on autodetection. */
 #undef DUK_USE_PACKED_TVAL
 #define DUK_F_PACKED_TVAL_PROVIDED
+#elif defined(DUK_F_LOONGARCH64)
+#define DUK_USE_ARCH_STRING "loongarch64"
+#define DUK_USE_BYTEORDER 1
+#define DUK_USE_PACKED_TVAL
+#define DUK_F_PACKED_TVAL_PROVIDED
 #elif defined(DUK_F_RISCV32)
 /* --- RISC-V 32-bit --- */
 #define DUK_USE_ARCH_STRING "riscv32"

I imagine that is coming from svaarala/duktape@1dcb1c2

merged upstream


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/issues/3976@github.com>