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