Merge pull request #963

44dab04 Build: use libstdc++ with clang < 3.7 (anonimal)
455ded4 Build: use Boost 1.58 for Travis build. Refs #956 (anonimal)
This commit is contained in:
Riccardo Spagni 2016-08-16 14:40:51 +02:00
commit 63ba2447e2
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
2 changed files with 9 additions and 5 deletions

View File

@ -14,7 +14,6 @@ addons:
- gcc - gcc
- clang - clang
- graphviz - graphviz
- libboost1.55-all-dev
- libdb++-dev - libdb++-dev
- libdb-dev - libdb-dev
- libgtest-dev - libgtest-dev
@ -23,8 +22,13 @@ addons:
- libssl1.0.0 - libssl1.0.0
- libunbound-dev - libunbound-dev
- libunwind8-dev - libunwind8-dev
#sources: sources:
#- ubuntu-toolchain-r-test - 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 script: make -j2 && HAVE_DOT=YES doxygen Doxyfile
notifications: notifications:
email: false email: false

View File

@ -407,8 +407,8 @@ else()
set(USE_LTO false) set(USE_LTO false)
# explicitly define stdlib for older versions of clang # explicitly define stdlib for older versions of clang
if(CMAKE_C_COMPILER_VERSION VERSION_LESS 3.7) if(CMAKE_C_COMPILER_VERSION VERSION_LESS 3.7)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libstdc++")
endif() endif()
endif() endif()