mirror of https://github.com/CGAL/cgal
30 lines
1.2 KiB
Bash
30 lines
1.2 KiB
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
BOOST_DIR=$HOME/CGAL/boost
|
|
VERSION=1_55
|
|
|
|
OPTS="-j4 --layout=tagged link=shared variant=release threading=multi"
|
|
OPTS="$OPTS --without-python --without-test --without-mpi --without-wave --without-graph_parallel"
|
|
|
|
if [ -x ./b2 ]; then
|
|
BJAM=./b2
|
|
else
|
|
BJAM=./bjam
|
|
fi
|
|
if [ ! -x $BJAM ]; then
|
|
BJAM=bjam
|
|
fi
|
|
|
|
# "$BJAM" --prefix="$BOOST_DIR/${VERSION}" --libdir="$BOOST_DIR/${VERSION}-gcc41/lib" --stagedir=stage-4.1 $OPTS --without-log toolset=gcc-4.1 install
|
|
# ln -sf ../${VERSION}/include "$BOOST_DIR/${VERSION}-gcc41/"
|
|
|
|
# "$BJAM" --prefix="$BOOST_DIR/${VERSION}" $OPTS toolset=gcc-4.5.4 install
|
|
|
|
"$BJAM" --prefix="$BOOST_DIR/${VERSION}" --libdir="$BOOST_DIR/${VERSION}-gcc-cxxdebug/lib" --stagedir=stage-cxxdebug $OPTS toolset=gcc-cxxdebug install
|
|
ln -sf ../${VERSION}/include "$BOOST_DIR/${VERSION}-gcc-cxxdebug/"
|
|
|
|
source ~/infrastructure/reference-platforms/x86-64_Linux-Fedora19_IntelCompiler-14.0-with-g++-4.8-STL/setup
|
|
"$BJAM" --prefix="$BOOST_DIR/${VERSION}" --libdir="$BOOST_DIR/${VERSION}-intel/lib" --stagedir=stage-intel $OPTS toolset=intel cxxflags="-D__SIZEOF_LONG__=8 -D__SIZEOF_LONG_LONG__=8" install
|
|
ln -sf ../${VERSION}/include "$BOOST_DIR/${VERSION}-intel/"
|