From: Michael Friedrich Date: Sun, 5 Jul 2015 13:10:43 +0000 (+0200) Subject: Require g++ 4.7 on sles11sp3 X-Git-Tag: v2.4.0~547 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b578faa8760c53f68abc650713fdfd1ffcab05b7;p=icinga2 Require g++ 4.7 on sles11sp3 refs #8842 fixes #9559 --- diff --git a/INSTALL.md b/INSTALL.md index 50612e569..f13556e66 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 2c01366da..ca8fd3062 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -93,8 +93,13 @@ BuildRequires: libyajl-devel BuildRequires: libedit-devel BuildRequires: ncurses-devel 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