disable -fexceptions, use libunwind

This commit is contained in:
Tom Callaway 2013-07-10 16:14:52 -04:00
parent 349cb0b606
commit c855f1233b
1 changed files with 9 additions and 6 deletions

View File

@ -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 <spot@fedoraproject.org> - 2.0-11.3
- use libunwind
- disable -fexceptions, as that breaks things on el6
* Tue Jun 25 2013 Tom Callaway <spot@fedoraproject.org> - 2.0-11.2
- pass -pthread