Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
Ingvar Hagelund | fa99be6ec8 | |
Ingvar Hagelund | e2240220f0 | |
Ingvar Hagelund | 1a5766d9af |
|
@ -1,7 +1,7 @@
|
||||||
Name: jemalloc
|
Name: jemalloc
|
||||||
Version: 4.5.0
|
Version: 4.5.0
|
||||||
|
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: General-purpose scalable concurrent malloc implementation
|
Summary: General-purpose scalable concurrent malloc implementation
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
|
@ -35,8 +35,7 @@ developing applications that use %{name}.
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
# Disable thp on systems not supporting this, trusting that Fedora will enable
|
# Disable thp on systems not supporting this for now
|
||||||
# this on the build servers when ready for installed systems.
|
|
||||||
%ifarch %ix86 %arm aarch64 s390x
|
%ifarch %ix86 %arm aarch64 s390x
|
||||||
%define disable_thp --disable-thp
|
%define disable_thp --disable-thp
|
||||||
%patch5
|
%patch5
|
||||||
|
@ -49,6 +48,14 @@ CFLAGS="%{optflags} -msse2"
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%ifarch %ix86 %arm x86_64 s390x aarch64
|
||||||
|
%define lg_page --with-lg-page=12
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ifarch ppc64 ppc64le
|
||||||
|
%define lg_page --with-lg-page=16
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?rhel} && 0%{?rhel} < 7
|
%if 0%{?rhel} && 0%{?rhel} < 7
|
||||||
export LDFLAGS="%{?__global_ldflags} -lrt"
|
export LDFLAGS="%{?__global_ldflags} -lrt"
|
||||||
%endif
|
%endif
|
||||||
|
@ -65,7 +72,7 @@ cat /sys/kernel/mm/transparent_hugepage/enabled || true
|
||||||
echo "What kernel version and config is this?"
|
echo "What kernel version and config is this?"
|
||||||
uname -a
|
uname -a
|
||||||
|
|
||||||
%configure %{?disable_thp}
|
%configure %{?disable_thp} %{?lg_page}
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
@ -107,6 +114,9 @@ rm -rf %{buildroot}
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 07 2018 Ingvar Hagelund <ingvar@redpill-linpro.com> - 4.5.0-5
|
||||||
|
- Hard code pagesize for different arches, closes bz #1545539
|
||||||
|
|
||||||
* Wed Aug 16 2017 Ingvar Hagelund <ingvar@redpill-linpro.com> - 4.5.0-4
|
* Wed Aug 16 2017 Ingvar Hagelund <ingvar@redpill-linpro.com> - 4.5.0-4
|
||||||
- Rather use ifarch than checking builder kernel for thp support
|
- Rather use ifarch than checking builder kernel for thp support
|
||||||
- Cleanup; removed unnecessary patch for atomic ops on arm, pulled el5 support,
|
- Cleanup; removed unnecessary patch for atomic ops on arm, pulled el5 support,
|
||||||
|
|
Loading…
Reference in New Issue