From c855f1233be4a5e6227de69ad5cdf077457793ed Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Wed, 10 Jul 2013 16:14:52 -0400 Subject: [PATCH] disable -fexceptions, use libunwind --- gperftools.spec | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/gperftools.spec b/gperftools.spec index eab1c5a..43b0da7 100644 --- a/gperftools.spec +++ b/gperftools.spec @@ -2,7 +2,7 @@ Name: gperftools Version: 2.0 -Release: 11%{?dist}.2 +Release: 11%{?dist}.3 License: BSD Group: Development/Tools Summary: Very fast malloc and performance analysis tools @@ -12,10 +12,8 @@ Source0: http://gperftools.googlecode.com/files/%{name}-%{version}.tar.gz Patch0: gperftools-svn-r190.patch Patch1: gperftools-2.0-svn190-to-svn218.patch ExclusiveArch: %{ix86} x86_64 ppc %{arm} -%ifnarch ppc ppc64 -# BuildRequires: libunwind-devel -%endif BuildRequires: autoconf, automake, libtool +BuildRequires: libunwind-devel Requires: gperftools-devel = %{version}-%{release} Requires: pprof = %{version}-%{release} @@ -72,8 +70,9 @@ sed -i 's|2.68|2.63|g' configure.ac autoreconf -i %build -CXXFLAGS=`echo $RPM_OPT_FLAGS -fno-strict-aliasing -Wno-unused-local-typedefs -DTCMALLOC_LARGE_PAGES -pthread| sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g'` -%configure --disable-static --enable-frame-pointers +CFLAGS=`echo $RPM_OPT_FLAGS -fno-strict-aliasing -Wno-unused-local-typedefs -DTCMALLOC_LARGE_PAGES | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' | sed -e 's|-fexceptions||g'` +CXXFLAGS=`echo $RPM_OPT_FLAGS -fno-strict-aliasing -Wno-unused-local-typedefs -DTCMALLOC_LARGE_PAGES | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' | sed -e 's|-fexceptions||g'` +%configure --disable-static # Bad rpath! sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool @@ -118,6 +117,10 @@ rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/INSTALL %{_libdir}/*.so.* %changelog +* Wed Jul 10 2013 Tom Callaway - 2.0-11.3 +- use libunwind +- disable -fexceptions, as that breaks things on el6 + * Tue Jun 25 2013 Tom Callaway - 2.0-11.2 - pass -pthread