- Enable profiling

- Add jemalloc-fix-backtracing.patch to fix profiling tests on x86
  (the failures were triggered due to profiling support.)

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jemalloc?expand=0&rev=22
This commit is contained in:
Ismail Dönmez 2014-03-31 09:27:21 +00:00 committed by Git OBS Bridge
parent 89ea9b96ee
commit 8771a24478
3 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,12 @@
Index: jemalloc-3.5.1/configure.ac
===================================================================
--- jemalloc-3.5.1.orig/configure.ac
+++ jemalloc-3.5.1/configure.ac
@@ -779,6 +779,7 @@ fi
)
if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
-a "x$GCC" = "xyes" ; then
+ JE_CFLAGS_APPEND([-fno-omit-frame-pointer])
backtrace_method="gcc intrinsics"
AC_DEFINE([JEMALLOC_PROF_GCC], [ ])
else

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Mar 31 09:21:34 UTC 2014 - idonmez@suse.com
- Enable profiling
- Add jemalloc-fix-backtracing.patch to fix profiling tests on x86
(the failures were triggered due to profiling support.)
-------------------------------------------------------------------
Wed Feb 26 17:17:33 UTC 2014 - idonmez@suse.com

View File

@ -27,6 +27,8 @@ Url: http://canonware.com/jemalloc/
#Git-Clone: git://canonware.com/jemalloc
Source: http://www.canonware.com/download/jemalloc/jemalloc-%{version}.tar.bz2
Patch1: jemalloc-fix-backtracing.patch
BuildRequires: autoconf
BuildRequires: docbook-xsl-stylesheets
BuildRequires: libxslt
Requires: %lname = %{version}
@ -64,10 +66,13 @@ malloc(3) implementation.
%prep
%setup -q
%patch1 -p1
%build
export EXTRA_CFLAGS="%{optflags} -std=gnu99"
%configure --enable-cc-silence
autoconf
%configure --enable-cc-silence \
--enable-prof
make %{?_smp_mflags}
%install