diff --git a/add-sw_64-support.patch b/add-sw_64-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..b08f5a489bc1f5f9174e38c7f0e41e57df13bf30 --- /dev/null +++ b/add-sw_64-support.patch @@ -0,0 +1,26 @@ +From e77aa323a213f67ffb9725e9c08d5aebc7cc3620 Mon Sep 17 00:00:00 2001 +From: Hailiang +Date: Tue, 13 May 2025 13:39:01 +0800 +Subject: [PATCH] add sw_64 support + +--- + include/jemalloc/internal/quantum.h | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/include/jemalloc/internal/quantum.h b/include/jemalloc/internal/quantum.h +index c22d753..5bfe057 100644 +--- a/include/jemalloc/internal/quantum.h ++++ b/include/jemalloc/internal/quantum.h +@@ -33,6 +33,9 @@ + # ifdef __loongarch__ + # define LG_QUANTUM 4 + # endif ++# ifdef __sw_64__ ++# define LG_QUANTUM 4 ++# endif + # ifdef __m68k__ + # define LG_QUANTUM 3 + # endif +-- +2.20.1 + diff --git a/jemalloc.spec b/jemalloc.spec index fe446f839818803a770de931c286f6942a5eebad..25aee3cf126400321d88cd9dd862d2519a416c4d 100644 --- a/jemalloc.spec +++ b/jemalloc.spec @@ -12,11 +12,12 @@ Name: jemalloc Version: 5.3.0 -Release: 1 +Release: 2 Summary: General-purpose scalable concurrent malloc implementation License: BSD-2-Clause URL: http://www.canonware.com/jemalloc/ Source0: https://github.com/jemalloc/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2 +Patch1: add-sw_64-support.patch BuildRequires: perl-generators gcc /usr/bin/xsltproc @@ -39,6 +40,7 @@ The help package contains manual pages and other related files for jemalloc. %prep %setup -q +%patch1 -p1 %build export LDFLAGS="%{?__global_ldflags} -lrt" @@ -80,6 +82,9 @@ make check %{_mandir}/man3/jemalloc.3* %changelog +* Tue May 13 2025 mahailiang - 5.3.0-2 +- add sw_64 support + * Wed Mar 01 2023 li-long315 - 5.3.0-1 - Upgrade to 5.3.0