X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=contrib%2Fredhat%2Fcollectd.spec;h=752b0246e31d9c396d50ed7bb6f0a508bfb67126;hp=3cefc1bdec5222aa4ad777fc56326e8ac72fe5f7;hb=06a86a60a7dabc685bdbd81ce3d36ea5f7e2c2d4;hpb=a4db31342f22ac33831874bab420831b25d31d66 diff --git a/contrib/redhat/collectd.spec b/contrib/redhat/collectd.spec index 3cefc1bd..752b0246 100644 --- a/contrib/redhat/collectd.spec +++ b/contrib/redhat/collectd.spec @@ -38,6 +38,9 @@ %global _hardened_build 1 %{?perl_default_filter} +# disable collectd debug by default +%bcond_with debug + # plugins enabled by default %define with_aggregation 0%{!?_without_aggregation:1} %define with_amqp 0%{!?_without_amqp:1} @@ -1872,8 +1875,15 @@ Collectd utilities %define _with_zookeeper --disable-zookeeper %endif +%if %{with debug} +%define _feature_debug --enable-debug +%else +%define _feature_debug --disable-debug +%endif + %configure CFLAGS="%{optflags} -DLT_LAZY_OR_NOW=\"RTLD_LAZY|RTLD_GLOBAL\"" \ %{?_python_config} \ + %{?_feature_debug} \ --disable-static \ --enable-all-plugins=yes \ --enable-match_empty_counter \