- fix build on s390
This commit is contained in:
parent
8d4dffa685
commit
8b852738a1
12
jemalloc-2.0.1-s390.patch
Normal file
12
jemalloc-2.0.1-s390.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up jemalloc-2.0.1/include/jemalloc/internal/jemalloc_internal.h.in.orig jemalloc-2.0.1/include/jemalloc/internal/jemalloc_internal.h.in
|
||||||
|
--- jemalloc-2.0.1/include/jemalloc/internal/jemalloc_internal.h.in.orig 2010-12-11 14:23:59.000000000 +0100
|
||||||
|
+++ jemalloc-2.0.1/include/jemalloc/internal/jemalloc_internal.h.in 2010-12-11 14:24:04.000000000 +0100
|
||||||
|
@@ -135,7 +135,7 @@ extern void (*JEMALLOC_P(malloc_message)
|
||||||
|
#ifdef __powerpc__
|
||||||
|
# define LG_QUANTUM 4
|
||||||
|
#endif
|
||||||
|
-#ifdef __s390x__
|
||||||
|
+#ifdef __s390__
|
||||||
|
# define LG_QUANTUM 4
|
||||||
|
#endif
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
Name: jemalloc
|
Name: jemalloc
|
||||||
Version: 2.0.1
|
Version: 2.0.1
|
||||||
|
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: General-purpose scalable concurrent malloc implementation
|
Summary: General-purpose scalable concurrent malloc implementation
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -12,6 +12,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|||||||
|
|
||||||
# Remove pprof, as it already exists in google-perftools
|
# Remove pprof, as it already exists in google-perftools
|
||||||
Patch0: jemalloc-2.0.1.no_pprof.patch
|
Patch0: jemalloc-2.0.1.no_pprof.patch
|
||||||
|
# check for __s390__ as it's defined on both s390 and s390x
|
||||||
|
Patch1: jemalloc-2.0.1-s390.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
General-purpose scalable concurrent malloc(3) implementation.
|
General-purpose scalable concurrent malloc(3) implementation.
|
||||||
@ -29,6 +31,7 @@ developing applications that use %{name}.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0
|
%patch0
|
||||||
|
%patch1 -p1 -b .s390
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
@ -63,6 +66,9 @@ rm -rf %{buildroot}
|
|||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Dec 11 2010 Dan Horák <dan[at]danny.cz> - 2.0.1-3
|
||||||
|
- fix build on s390
|
||||||
|
|
||||||
* Thu Nov 18 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.0.1-2
|
* Thu Nov 18 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.0.1-2
|
||||||
- Added a patch that removes pprof, as it already exists in the
|
- Added a patch that removes pprof, as it already exists in the
|
||||||
google-perftools package
|
google-perftools package
|
||||||
|
Loading…
Reference in New Issue
Block a user