mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 15:14:07 +02:00
parent
287bde6689
commit
db1cd8dc38
@ -31,6 +31,7 @@
|
|||||||
%define apachegroup apache
|
%define apachegroup apache
|
||||||
%if 0%{?el5}%{?el6}
|
%if 0%{?el5}%{?el6}
|
||||||
%define use_systemd 0
|
%define use_systemd 0
|
||||||
|
%define march_flag -march=i686
|
||||||
%else
|
%else
|
||||||
# fedora and el>=7
|
# fedora and el>=7
|
||||||
%define use_systemd 1
|
%define use_systemd 1
|
||||||
@ -206,15 +207,14 @@ CMAKE_OPTS="$CMAKE_OPTS -DBOOST_LIBRARYDIR=/usr/lib/boost141 \
|
|||||||
%if "%{_vendor}" != "suse"
|
%if "%{_vendor}" != "suse"
|
||||||
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_PLUGINDIR=%{_libdir}/nagios/plugins"
|
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_PLUGINDIR=%{_libdir}/nagios/plugins"
|
||||||
%else
|
%else
|
||||||
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_PLUGINDIR=%{_prefix}/lib/nagios/plugins \
|
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_PLUGINDIR=%{_prefix}/lib/nagios/plugins"
|
||||||
-DCMAKE_C_FLAGS='-march=i686' -DCMAKE_CXX_FLAGS='-march=i686'"
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?use_systemd}
|
%if 0%{?use_systemd}
|
||||||
CMAKE_OPTS="$CMAKE_OPTS -DUSE_SYSTEMD=ON"
|
CMAKE_OPTS="$CMAKE_OPTS -DUSE_SYSTEMD=ON"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
cmake $CMAKE_OPTS .
|
cmake $CMAKE_OPTS -DCMAKE_C_FLAGS:STRING="%{optflags} %{?march_flag}" -DCMAKE_CXX_FLAGS:STRING="%{optflags} %{?march_flag}" .
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user