From 455ded454d6d3f6bb7bb73b657f76e84c41f102c Mon Sep 17 00:00:00 2001 From: anonimal Date: Mon, 15 Aug 2016 16:28:08 +0000 Subject: [PATCH 1/2] Build: use Boost 1.58 for Travis build. Refs #956 --- .travis.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1e11d543c..beea1dfab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,6 @@ addons: - gcc - clang - graphviz - - libboost1.55-all-dev - libdb++-dev - libdb-dev - libgtest-dev @@ -23,8 +22,13 @@ addons: - libssl1.0.0 - libunbound-dev - libunwind8-dev - #sources: - #- ubuntu-toolchain-r-test + sources: + - ubuntu-toolchain-r-test +before_install: +- sudo add-apt-repository -y ppa:kojoley/boost +- sudo apt-get -q update +install: +- sudo apt-get -y install libboost-{chrono,program-options,date-time,thread,system,filesystem,regex,serialization}1.58{-dev,.0} script: make -j2 && HAVE_DOT=YES doxygen Doxyfile notifications: email: false From 44dab04d885f1a471a4f1dd73e8d951887735c03 Mon Sep 17 00:00:00 2001 From: anonimal Date: Tue, 16 Aug 2016 12:04:05 +0000 Subject: [PATCH 2/2] Build: use libstdc++ with clang < 3.7 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 90d06c12d..bb5e4b1ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -407,8 +407,8 @@ else() set(USE_LTO false) # explicitly define stdlib for older versions of clang if(CMAKE_C_COMPILER_VERSION VERSION_LESS 3.7) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libstdc++") endif() endif()