From 1a5766d9af415048cb342b609b3ac75d56d344f3 Mon Sep 17 00:00:00 2001 From: Ingvar Hagelund Date: Thu, 8 Mar 2018 09:55:17 +0100 Subject: [PATCH] Hard code pagesize for different arches, closes bz #1545539 --- jemalloc.spec | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/jemalloc.spec b/jemalloc.spec index ffbfaa3..55c2957 100644 --- a/jemalloc.spec +++ b/jemalloc.spec @@ -1,7 +1,7 @@ Name: jemalloc Version: 4.5.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose scalable concurrent malloc implementation Group: System Environment/Libraries @@ -65,6 +65,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 @@ -81,7 +89,7 @@ cat /sys/kernel/mm/transparent_hugepage/enabled || true echo "What kernel version and config is this?" uname -a -%configure +%configure %{?lg_page} make %{?_smp_mflags} %check @@ -128,6 +136,9 @@ rm -rf %{buildroot} %postun -p /sbin/ldconfig %changelog +* Wed Mar 07 2018 Ingvar Hagelund - 4.5.0-2 +- Hard code pagesize for different arches, closes bz #1545539 + * Wed Mar 01 2017 Ingvar Hagelund - 4.5.0-1 - New upstream release