diff --git a/add-sw_64-support-not-upstream-modified.patch b/add-sw_64-support-not-upstream-modified.patch new file mode 100644 index 0000000000000000000000000000000000000000..1062576f26bb3d03668603d152e261162bab7715 --- /dev/null +++ b/add-sw_64-support-not-upstream-modified.patch @@ -0,0 +1,27 @@ +From 7a423031819e9a28d4fd51eab8bc25f84bad95e0 Mon Sep 17 00:00:00 2001 +From: herengui +Date: Mon, 28 Aug 2023 14:21:52 +0800 +Subject: [PATCH 1/1] add support for sw_64 + +Signed-off-by: herengui +--- + 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..9c6e9af 100644 +--- a/include/jemalloc/internal/quantum.h ++++ b/include/jemalloc/internal/quantum.h +@@ -15,6 +15,9 @@ + # ifdef __alpha__ + # define LG_QUANTUM 4 + # endif ++# ifdef __sw_64__ ++# define LG_QUANTUM 4 ++# endif + # if (defined(__sparc64__) || defined(__sparcv9) || defined(__sparc_v9__)) + # define LG_QUANTUM 4 + # endif +-- +2.41.0 + diff --git a/jemalloc.spec b/jemalloc.spec index 07b2c8d2c52520971680eae01cdd9221ceb7d3aa..5655fd58cb2594580f17090845bd4c26eab15efa 100644 --- a/jemalloc.spec +++ b/jemalloc.spec @@ -12,12 +12,13 @@ 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 +Patch1000: add-sw_64-support-not-upstream-modified.patch BuildRequires: perl-generators gcc /usr/bin/xsltproc @@ -38,7 +39,7 @@ Summary: help for jemalloc. The help package contains manual pages and other related files for jemalloc. %prep -%setup -q +%autosetup -p1 %build export LDFLAGS="%{?__global_ldflags} -lrt" @@ -80,6 +81,9 @@ make check %{_mandir}/man3/jemalloc.3* %changelog +* Mon Aug 28 2023 herengui - 5.3.0-2 +- add support for sw_64 + * Tue Mar 07 2023 mawenshuo - 5.3.0-1 - Upgrade to 5.3.0