From 88a635e84a3d12768626f34d2cd811d3f467e970 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Sun, 5 Jul 2015 15:10:43 +0200 Subject: [PATCH] Require g++ 4.7 on sles11sp3 refs #8842 fixes #9559 --- INSTALL.md | 2 +- icinga2.spec | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index a88a4b7d0..a60309538 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -20,7 +20,7 @@ parentheses): * cmake * GNU make (make) -* C++ compiler (gcc-c++ on RHEL, build-essential on Debian) +* C++ compiler (gcc-c++ >= 4.7 on RHEL/SUSE, build-essential on Debian, alternatively clang++) * OpenSSL library and header files (openssl-devel on RHEL, libssl-dev on Debian) * Boost library and header files (boost-devel on RHEL, libboost-all-dev on Debian) * GNU bison (bison) diff --git a/icinga2.spec b/icinga2.spec index 33da763d9..cfa1499da 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -91,8 +91,13 @@ BuildRequires: libyajl-devel %endif %endif BuildRequires: openssl-devel +"%{_vendor}" == "suse" && 0%{?suse_version} < 1310 +BuildRequires: gcc47-c++ +BuildRequires: libstdc++47-devel +%else BuildRequires: gcc-c++ BuildRequires: libstdc++-devel +%endif BuildRequires: cmake BuildRequires: flex >= 2.5.35 BuildRequires: bison -- 2.40.0