]> git.proxmox.com Git - ceph.git/blame - ceph/src/Beast/scripts/install-boost.sh
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / Beast / scripts / install-boost.sh
CommitLineData
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
9set -eu
10if [ ! -d "$BOOST_ROOT/lib" ]
11then
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
24else
25 echo "Using cached boost at $BOOST_ROOT"
26fi
27