!19 add loongarch64 support
From: @dpdwaj Reviewed-by: @gitee-cmd Signed-off-by: @gitee-cmd
This commit is contained in:
commit
22b6c9ad5b
26
0001-jemalloc-5.2.1-add-loongarch-support.patch
Normal file
26
0001-jemalloc-5.2.1-add-loongarch-support.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From c542703f06759de8982e37d8b3799a81a2fec60b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Huang Yang <huangyang@loongson.cn>
|
||||||
|
Date: Wed, 25 May 2022 01:47:26 +0000
|
||||||
|
Subject: [PATCH] 389-ds-base 1.4.3.20 add loongarch 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 821086e..9428a34 100644
|
||||||
|
--- a/include/jemalloc/internal/quantum.h
|
||||||
|
+++ b/include/jemalloc/internal/quantum.h
|
||||||
|
@@ -61,6 +61,9 @@
|
||||||
|
# ifdef __le32__
|
||||||
|
# define LG_QUANTUM 4
|
||||||
|
# endif
|
||||||
|
+# ifdef __loongarch__
|
||||||
|
+# define LG_QUANTUM 4
|
||||||
|
+# endif
|
||||||
|
# ifndef LG_QUANTUM
|
||||||
|
# error "Unknown minimum alignment for architecture; specify via "
|
||||||
|
"--with-lg-quantum"
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
Name: jemalloc
|
Name: jemalloc
|
||||||
Version: 5.2.1
|
Version: 5.2.1
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: General-purpose scalable concurrent malloc implementation
|
Summary: General-purpose scalable concurrent malloc implementation
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
URL: http://www.canonware.com/jemalloc/
|
URL: http://www.canonware.com/jemalloc/
|
||||||
@ -21,6 +21,7 @@ Source0: https://github.com/jemalloc/%{name}/releases/download/%{version}
|
|||||||
Patch1: backport-Jemalloc-5.2.1-patch-1-fix-large-bin-index-accessed-through-cache-bin-descriptor.patch
|
Patch1: backport-Jemalloc-5.2.1-patch-1-fix-large-bin-index-accessed-through-cache-bin-descriptor.patch
|
||||||
Patch2: backport-Jemalloc-5.2.1-patch-2-fix-undefined-behavior-in-hash.patch
|
Patch2: backport-Jemalloc-5.2.1-patch-2-fix-undefined-behavior-in-hash.patch
|
||||||
Patch3: backport-Jemalloc-5.2.1-patch-3-fix-tcaches-mutex-pre-post-fork-handling.patch
|
Patch3: backport-Jemalloc-5.2.1-patch-3-fix-tcaches-mutex-pre-post-fork-handling.patch
|
||||||
|
Patch4: 0001-jemalloc-5.2.1-add-loongarch-support.patch
|
||||||
BuildRequires: libxslt perl-generators gcc
|
BuildRequires: libxslt perl-generators gcc
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -40,7 +41,13 @@ Summary: help for jemalloc.
|
|||||||
The help package contains manual pages and other related files for jemalloc.
|
The help package contains manual pages and other related files for jemalloc.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%setup -q
|
||||||
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
|
%patch3 -p1
|
||||||
|
%ifarch loongarch64
|
||||||
|
%patch4 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export LDFLAGS="%{?__global_ldflags} -lrt"
|
export LDFLAGS="%{?__global_ldflags} -lrt"
|
||||||
@ -82,6 +89,9 @@ make check
|
|||||||
%{_mandir}/man3/jemalloc.3*
|
%{_mandir}/man3/jemalloc.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 15 2022 doupengda <doupengda@loongson.cn> - 5.2.1-7
|
||||||
|
- add loongarch64 support
|
||||||
|
|
||||||
* Tue May 10 2022 Ge Wang <wangge@h-partner.com> - 5.2.1-6
|
* Tue May 10 2022 Ge Wang <wangge@h-partner.com> - 5.2.1-6
|
||||||
- License compliance rectification
|
- License compliance rectification
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user