diff --git a/gperftools.changes b/gperftools.changes index f3b6f3f..fe366b4 100644 --- a/gperftools.changes +++ b/gperftools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Feb 17 11:23:45 CET 2012 - hmacht@suse.de + +- enable build with libunwind + ------------------------------------------------------------------- Thu Feb 16 22:17:11 UTC 2012 - jengelh@medozas.de diff --git a/gperftools.spec b/gperftools.spec index 0413b15..f713bd0 100644 --- a/gperftools.spec +++ b/gperftools.spec @@ -26,15 +26,7 @@ Patch4: %{name}-fix_docdir.patch Patch11: %{name}_fix_multiple_install_headers.patch Patch12: %{name}_fix_unassigned_malloc_in_unittest.patch Patch14: %{name}_gcc46.patch -BuildRequires: gcc-c++ pkg-config autoconf automake libtool -# Can't use libunwind. See bnc#393927 and bnc#395623 -%ifarch x86_64 ia64 ppc ppc64 s390 s390x -%define no_libunwind_on_64 "-DNO_TCMALLOC_SAMPLES" -%define no_libunwind_on_64_config "--enable-frame-pointers" -%else -%define no_libunwind_on_64 "" -%define no_libunwind_on_64_config "" -%endif +BuildRequires: gcc-c++ pkg-config autoconf automake libtool libunwind-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: Performance Tools for C++ Provides: google-perftools @@ -69,9 +61,9 @@ files for developing applications that use the gperftools package. %build autoreconf -fi -export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing %no_libunwind_on_64" \ -export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing %no_libunwind_on_64" \ -%configure --disable-static --with-gnu-ld --with-pic %no_libunwind_on_64_config +export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \ +export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \ +%configure --disable-static --with-gnu-ld --with-pic make %{?_smp_mflags} %install