disable -fexceptions, use libunwind

This commit is contained in:
Tom Callaway 2013-07-10 16:14:52 -04:00
parent 349cb0b606
commit c855f1233b

View File

@ -2,7 +2,7 @@
Name: gperftools Name: gperftools
Version: 2.0 Version: 2.0
Release: 11%{?dist}.2 Release: 11%{?dist}.3
License: BSD License: BSD
Group: Development/Tools Group: Development/Tools
Summary: Very fast malloc and performance analysis 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 Patch0: gperftools-svn-r190.patch
Patch1: gperftools-2.0-svn190-to-svn218.patch Patch1: gperftools-2.0-svn190-to-svn218.patch
ExclusiveArch: %{ix86} x86_64 ppc %{arm} ExclusiveArch: %{ix86} x86_64 ppc %{arm}
%ifnarch ppc ppc64
# BuildRequires: libunwind-devel
%endif
BuildRequires: autoconf, automake, libtool BuildRequires: autoconf, automake, libtool
BuildRequires: libunwind-devel
Requires: gperftools-devel = %{version}-%{release} Requires: gperftools-devel = %{version}-%{release}
Requires: pprof = %{version}-%{release} Requires: pprof = %{version}-%{release}
@ -72,8 +70,9 @@ sed -i 's|2.68|2.63|g' configure.ac
autoreconf -i autoreconf -i
%build %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'` 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'`
%configure --disable-static --enable-frame-pointers 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! # Bad rpath!
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool 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.* %{_libdir}/*.so.*
%changelog %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 * Tue Jun 25 2013 Tom Callaway <spot@fedoraproject.org> - 2.0-11.2
- pass -pthread - pass -pthread