mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 15:44:11 +02:00
icinga2.spec: Add selecting g++ compiler on older SUSE releases
g++ is too old, and the newer binary is suffixed. Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com> fixes #5218
This commit is contained in:
parent
712c526e31
commit
55181fe8b2
@ -339,6 +339,12 @@ CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_PLUGINDIR=%{_prefix}/lib/nagios/plugins"
|
|||||||
CMAKE_OPTS="$CMAKE_OPTS -DUSE_SYSTEMD=ON"
|
CMAKE_OPTS="$CMAKE_OPTS -DUSE_SYSTEMD=ON"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if "%{_vendor}" == "suse" && 0%{?suse_version} < 1210
|
||||||
|
# from package gcc48-c++
|
||||||
|
export CC=gcc-4.8
|
||||||
|
export CXX=g++-4.8
|
||||||
|
%endif
|
||||||
|
|
||||||
%{?scl_enable} cmake $CMAKE_OPTS -DCMAKE_C_FLAGS:STRING="%{optflags} %{?march_flag}" -DCMAKE_CXX_FLAGS:STRING="%{optflags} %{?march_flag}" .
|
%{?scl_enable} 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