Improve riscv64 (libatomic, lg_page, THP)
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
parent
1d7d0c6d5c
commit
a903328a1b
@ -1,7 +1,7 @@
|
|||||||
Name: jemalloc
|
Name: jemalloc
|
||||||
Version: 5.1.0
|
Version: 5.1.0
|
||||||
|
|
||||||
Release: 1.0.riscv64%{?dist}
|
Release: 1.1.riscv64%{?dist}
|
||||||
Summary: General-purpose scalable concurrent malloc implementation
|
Summary: General-purpose scalable concurrent malloc implementation
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -11,9 +11,12 @@ Source0: https://github.com/jemalloc/%{name}/releases/download/%{version}
|
|||||||
|
|
||||||
BuildRequires: /usr/bin/xsltproc
|
BuildRequires: /usr/bin/xsltproc
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
%ifnarch s390 %{mips} riscv64
|
%ifarch %{valgrind_arches}
|
||||||
BuildRequires: valgrind-devel
|
BuildRequires: valgrind-devel
|
||||||
%endif
|
%endif
|
||||||
|
%ifarch riscv64
|
||||||
|
BuildRequires: libatomic
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
General-purpose scalable concurrent malloc(3) implementation.
|
General-purpose scalable concurrent malloc(3) implementation.
|
||||||
@ -32,7 +35,7 @@ developing applications that use %{name}.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
# Override PAGESIZE, bz #1545539
|
# Override PAGESIZE, bz #1545539
|
||||||
%ifarch %ix86 %arm x86_64 s390x
|
%ifarch %ix86 %arm x86_64 s390x riscv64
|
||||||
%define lg_page --with-lg-page=12
|
%define lg_page --with-lg-page=12
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -41,7 +44,7 @@ developing applications that use %{name}.
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Disable thp on systems not supporting this for now
|
# Disable thp on systems not supporting this for now
|
||||||
%ifarch %ix86 %arm aarch64 s390x
|
%ifarch %ix86 %arm aarch64 s390x riscv64
|
||||||
%define disable_thp --disable-thp
|
%define disable_thp --disable-thp
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -57,6 +60,10 @@ CFLAGS="%{optflags} -msse2"
|
|||||||
export LDFLAGS="%{?__global_ldflags} -lrt"
|
export LDFLAGS="%{?__global_ldflags} -lrt"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%ifarch riscv64
|
||||||
|
export LDFLAGS="$LDFLAGS -latomic"
|
||||||
|
%endif
|
||||||
|
|
||||||
echo "For debugging package builders"
|
echo "For debugging package builders"
|
||||||
echo "What is the pagesize?"
|
echo "What is the pagesize?"
|
||||||
getconf PAGESIZE
|
getconf PAGESIZE
|
||||||
@ -107,6 +114,12 @@ find %{buildroot}%{_libdir}/ -name '*.a' -exec rm -vf {} ';'
|
|||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Jun 10 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 5.1.0-1.1.riscv64
|
||||||
|
- Switch to %{valgrind_arches}
|
||||||
|
- Link to libatomic
|
||||||
|
- Set lg_page to 12 (4K page)
|
||||||
|
- Disable THP
|
||||||
|
|
||||||
* Wed May 09 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 5.1.0-1.0.riscv64
|
* Wed May 09 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 5.1.0-1.0.riscv64
|
||||||
- Disable valgrind for riscv64
|
- Disable valgrind for riscv64
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user