Skip to content

Commit

Permalink
Build custom boost for the mac version as well
Browse files Browse the repository at this point in the history
  • Loading branch information
leecbaker committed Aug 11, 2016
1 parent b03f700 commit 0db799a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -34,7 +34,8 @@ before_install:
CC="gcc-4.9"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install http://git.io/sshpass.rb ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash build_latest_boost.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install wget ; fi
- bash build_latest_boost.sh
script:
- mkdir build
- cd build
Expand Down
16 changes: 12 additions & 4 deletions build_latest_boost.sh
@@ -1,13 +1,21 @@
#!/bin/bash

set -e -u -x
INSTALL_DIR=~/boost

wget http://downloads.sourceforge.net/project/boost/boost/1.60.0/boost_1_60_0.tar.bz2

tar --bzip2 -xf boost_1_60_0.tar.bz2
cd boost_1_60_0/
./bootstrap.sh --with-toolset=gcc --with-libraries=iostreams,filesystem,system --prefix=${INSTALL_DIR}
./b2 toolset=gcc-4.9 link=static threading=multi runtime-link=shared cxxflags=-fPIC
./b2 toolset=gcc-4.9 install --prefix=${INSTALL_DIR}

if [ "$(uname)" == "Darwin" ]; then
BOOTSTRAP_FLAGS=""
B2_FLAGS=""
else
BOOTSTRAP_FLAGS="--with-toolset=gcc"
B2_FLAGS="toolset=gcc-4.9"
fi
./bootstrap.sh ${BOOTSTRAP_FLAGS} --with-libraries=iostreams,filesystem,system --prefix=${INSTALL_DIR}
./b2 ${B2_FLAGS} link=static threading=multi runtime-link=shared cxxflags=-fPIC
./b2 ${B2_FLAGS} install --prefix=${INSTALL_DIR}


0 comments on commit 0db799a

Please sign in to comment.