diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-09-29 17:09:20 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-09-29 17:11:24 -0400 |
commit | 469c1a1b2ef323030531b0ca05e6f9337c0bbbe6 (patch) | |
tree | 5bfe6da7e1bc6ba6675174e661884e4bc731a6c7 /systemtap.spec | |
parent | 83b019a3a45ff764d746588eb2839baa32257ed3 (diff) | |
download | systemtap-steved-469c1a1b2ef323030531b0ca05e6f9337c0bbbe6.tar.gz systemtap-steved-469c1a1b2ef323030531b0ca05e6f9337c0bbbe6.tar.xz systemtap-steved-469c1a1b2ef323030531b0ca05e6f9337c0bbbe6.zip |
build fix: use boost shared_ptr if libstdc++ to old to have <tr1/memory>
* configure.ac: Look for tr1/memory and boost/shared_ptr.hpp
* setupdwfl.h (shared_ptr): Define conditionally based on above.
* systemtap.spec (with_boost): New parameter, default-off.
Diffstat (limited to 'systemtap.spec')
-rw-r--r-- | systemtap.spec | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/systemtap.spec b/systemtap.spec index 960d2e1b..3d05f8e1 100644 --- a/systemtap.spec +++ b/systemtap.spec @@ -6,6 +6,7 @@ %{!?elfutils_version: %define elfutils_version 0.127} %{!?pie_supported: %define pie_supported 1} %{!?with_grapher: %define with_grapher 1} +%{!?with_boost: %define with_boost 0} Name: systemtap Version: 1.0 @@ -23,6 +24,10 @@ Requires: kernel >= 2.6.9-11 %if %{with_sqlite} BuildRequires: sqlite-devel %endif +# Needed for libstd++ < 4.0, without <tr1/memory> +%if %{with_boost} +BuildRequires: boost-devel +%endif %if %{with_crash} BuildRequires: crash-devel zlib-devel %endif |