On 2026/10/05 07:15, [email protected] wrote:
> https://cranky.work/sparc64/2026-09-30/telephony/kamailio.log

this may help, however kamailio is horribly out of date (2022-02-17,
the 5.5 branch stopped getting updates in 2023-07-19, and there have
been 5 branches since then), so I'm thinking it might be a good idea
to remove unless somebody fancies taking up maintainership...

Index: patches/patch-src_Makefile_defs
===================================================================
RCS file: /cvs/ports/telephony/kamailio/patches/patch-src_Makefile_defs,v
diff -u -p -r1.7 patch-src_Makefile_defs
--- patches/patch-src_Makefile_defs     13 May 2022 14:48:15 -0000      1.7
+++ patches/patch-src_Makefile_defs     5 Oct 2026 17:26:27 -0000
@@ -14,6 +14,15 @@ Index: src/Makefile.defs
  
  alpha_macros= __alpha__ __alpha _M_ALPHA_
  
+@@ -866,7 +866,7 @@ ifeq ($(ARCH), x86_64)
+ endif
+ 
+ ifeq ($(ARCH), sparc64)
+-ifeq  ($(CC_NAME), gcc)
++ifeq  ($(CC_NAME),$(filter $(CC_NAME),gcc clang))
+       use_fast_lock=yes
+ endif
+ endif
 @@ -946,8 +946,7 @@ $(call                             
set_if_empty,CPUTYPE,generic)
                                        CFLAGS+=-m32 -minline-all-stringops \
                                                        -falign-loops \
@@ -43,6 +52,15 @@ Index: src/Makefile.defs
                                        LDFLAGS+=-m64
  else
                        #if gcc 4.0+
+@@ -1101,7 +1099,7 @@ endif    #ARCH, x86_64
+       #if sparc64
+ ifeq  ($(ARCH), sparc64)
+                       #if gcc
+-ifeq          ($(CC_NAME), gcc)
++ifeq          ($(CC_NAME),$(filter $(CC_NAME),gcc clang))
+                               C_DEFS+=-DCC_GCC_LIKE_ASM -DSPARC64_MODE
+                               #common stuff
+                               CFLAGS+=$(CC_OPT) -funroll-loops  $(PROFILE) \
 @@ -1112,7 +1110,6 @@ ifeq (,$(strip $(filter-out 4.2+ 4.5+ 5.0+ 6.0+ 7.0+ 8
  $(call                                set_if_empty,CPUTYPE,ultrasparc)
                                        #use 32bit for now

Reply via email to