Accepting request 105696 from home:hmacht:branches:devel:libraries:c_c++
link against libunwind OBS-URL: https://build.opensuse.org/request/show/105696 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gperftools?expand=0&rev=8
This commit is contained in:
parent
b5d1b33b10
commit
e7a46a2cff
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user