Compare commits

...

3 Commits
master ... f27

Author SHA1 Message Date
Ingvar Hagelund fa99be6ec8 fixed release number 2018-03-08 13:36:09 +01:00
Ingvar Hagelund e2240220f0 Merge branch 'lg_page_4k_64k' into f27 2018-03-08 13:33:42 +01:00
Ingvar Hagelund 1a5766d9af Hard code pagesize for different arches, closes bz #1545539 2018-03-08 09:55:17 +01:00
1 changed files with 14 additions and 4 deletions

View File

@ -1,7 +1,7 @@
Name: jemalloc
Version: 4.5.0
Release: 4%{?dist}
Release: 5%{?dist}
Summary: General-purpose scalable concurrent malloc implementation
Group: System Environment/Libraries
@ -35,8 +35,7 @@ developing applications that use %{name}.
%prep
%setup -q
# Disable thp on systems not supporting this, trusting that Fedora will enable
# this on the build servers when ready for installed systems.
# Disable thp on systems not supporting this for now
%ifarch %ix86 %arm aarch64 s390x
%define disable_thp --disable-thp
%patch5
@ -49,6 +48,14 @@ CFLAGS="%{optflags} -msse2"
%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
export LDFLAGS="%{?__global_ldflags} -lrt"
%endif
@ -65,7 +72,7 @@ cat /sys/kernel/mm/transparent_hugepage/enabled || true
echo "What kernel version and config is this?"
uname -a
%configure %{?disable_thp}
%configure %{?disable_thp} %{?lg_page}
make %{?_smp_mflags}
%check
@ -107,6 +114,9 @@ rm -rf %{buildroot}
%postun -p /sbin/ldconfig
%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
- Rather use ifarch than checking builder kernel for thp support
- Cleanup; removed unnecessary patch for atomic ops on arm, pulled el5 support,