From 492b8f81af4f57aba69c154881730b5843835647 Mon Sep 17 00:00:00 2001 From: Jacob Hansen Date: Fri, 3 Feb 2023 15:15:59 +0100 Subject: [PATCH] Spec: Let OS decide CFLAGS Instead of setting CFLAGS to nil, we use the default CFLAGS value set by the environment. Signed-off-by: Jacob Hansen --- naemon-core.spec | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/naemon-core.spec b/naemon-core.spec index e2fdb08f..53d66758 100644 --- a/naemon-core.spec +++ b/naemon-core.spec @@ -1,12 +1,5 @@ %define logmsg logger -t naemon/rpm -# Setup some debugging options in case we build with --with debug -%if %{defined _with_debug} - %define mycflags -O0 -pg -ggdb3 -%else - %define mycflags %{nil} -%endif - Summary: Open Source Host, Service And Network Monitoring Program Name: naemon-core Version: 1.4.1 @@ -115,7 +108,7 @@ Naemon. %build test -f configure || ./autogen.sh -CFLAGS="%{mycflags}" LDFLAGS="$CFLAGS" %configure \ +%configure \ --datadir="%{_datadir}/naemon" \ --libdir="%{_libdir}/naemon" \ --includedir="%{_includedir}" \