From 712c526e31be155d4d2337b70ab09bebced373f9 Mon Sep 17 00:00:00 2001 From: Markus Frosch Date: Mon, 24 Apr 2017 17:25:02 +0200 Subject: [PATCH] icinga2.spec: Update RedHat SCL handling for builds on el 5 and 6 So you don't have to modify the environment. Signed-off-by: Michael Friedrich fixes #5177 --- INSTALL.md | 15 ++++++++------- icinga2.spec | 9 ++++++++- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 1fd9e76b2..b4fa8f782 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -148,14 +148,15 @@ C++11 features. gpgcheck=0 REPO - yum install -y devtoolset-2-gcc devtoolset-2-gcc-c++ devtoolset-2-binutils +Dependencies to devtools-2 are used in the RPM SPEC, so the correct tools +should be used for building. - export LD_LIBRARY_PATH=/opt/rh/devtoolset-2/root/usr/lib:$LD_LIBRARY_PATH - export PATH=/opt/rh/devtoolset-2/root/usr/bin:$PATH - ln -sf /opt/rh/devtoolset-2/root/usr/bin/ld.bfd /opt/rh/devtoolset-2/root/usr/bin/ld - for file in `find /opt/rh/devtoolset-2/root/usr/include/c++ -name c++config.h`; do - echo '#define _GLIBCXX__PTHREADS' >> $file - done +As an alternative, you can use newer Boost packages provided on +[packages.icinga.com](https://packages.icinga.com/epel). + + cat >$HOME/.rpmmacros <