mirror of
https://git.icinga.com/packaging/rpm-icinga2.git
synced 2025-09-25 19:09:35 +02:00
SLES 12.5: require gcc11-c++
This commit is contained in:
parent
c53f23d612
commit
c5cb798c6f
10
icinga2.spec
10
icinga2.spec
@ -131,9 +131,14 @@ BuildRequires: %{scl_name}-binutils
|
||||
BuildRequires: %{scl_name}-gcc-c++
|
||||
BuildRequires: %{scl_name}-libstdc++-devel
|
||||
%else
|
||||
%if "%{_vendor}" == "suse" && 0%{?suse_version} >= 1315 && 0%{?suse_version} < 1500
|
||||
BuildRequires: gcc11-c++
|
||||
BuildRequires: libstdc++6-devel-gcc11
|
||||
%else
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libstdc++-devel
|
||||
%endif
|
||||
%endif
|
||||
BuildRequires: openssl-devel
|
||||
%endif
|
||||
BuildRequires: bison
|
||||
@ -430,6 +435,11 @@ CMAKE_OPTS="$CMAKE_OPTS -DUSE_SYSTEMD=ON"
|
||||
export CC=gcc-4.8
|
||||
export CXX=g++-4.8
|
||||
%endif
|
||||
%if "%{_vendor}" == "suse" && 0%{?suse_version} >= 1315 && 0%{?suse_version} < 1500
|
||||
# from package gcc11-c++
|
||||
export CC=gcc-11
|
||||
export CXX=g++-11
|
||||
%endif
|
||||
|
||||
%if "%{?_buildhost}" != ""
|
||||
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_BUILD_HOST_NAME:STRING=%_buildhost"
|
||||
|
Loading…
x
Reference in New Issue
Block a user