Skip to content

Commit

Permalink
Spec: Let OS decide CFLAGS
Browse files Browse the repository at this point in the history
Instead of setting CFLAGS to nil, we use the default CFLAGS value set by
the environment.

Signed-off-by: Jacob Hansen <[email protected]>
  • Loading branch information
jacobbaungard committed Feb 3, 2023
1 parent 139c4d9 commit 492b8f8
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions naemon-core.spec
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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}" \
Expand Down

0 comments on commit 492b8f8

Please sign in to comment.