]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #!/usr/bin/env bash |
2 | # Assumptions: | |
3 | # 1) BOOST_ROOT and BOOST_URL are already defined, | |
4 | # and contain valid values. | |
5 | # 2) The last namepart of BOOST_ROOT matches the | |
6 | # folder name internal to boost's .tar.gz | |
7 | # When testing you can force a boost build by clearing travis caches: | |
8 | # https://travis-ci.org/ripple/rippled/caches | |
9 | set -eu | |
10 | if [ ! -d "$BOOST_ROOT/lib" ] | |
11 | then | |
12 | wget $BOOST_URL -O /tmp/boost.tar.gz | |
13 | cd `dirname $BOOST_ROOT` | |
14 | rm -fr ${BOOST_ROOT} | |
15 | tar xzf /tmp/boost.tar.gz | |
16 | ||
17 | params="define=_GLIBCXX_USE_CXX11_ABI=0 \ | |
18 | address-model=$ADDRESS_MODEL --with-program_options \ | |
19 | --with-system --with-coroutine --with-filesystem" | |
20 | cd $BOOST_ROOT && \ | |
21 | ./bootstrap.sh --prefix=$BOOST_ROOT && \ | |
22 | ./b2 -d1 $params && \ | |
23 | ./b2 -d0 $params install | |
24 | else | |
25 | echo "Using cached boost at $BOOST_ROOT" | |
26 | fi | |
27 |