Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arch=`uname -m`
- sys=`uname -s`
- model=64
- install_root=/home/$USER/${sys}-${arch}-${model}/build
- lib_dir=$install_root/lib/boost-1_39
- include_dir=$install_root/include/boost-1_39
- # invoke configure
- ./bootstrap.sh --prefix=$install_root --exec-prefix=$install_root/bin --includedir=$include_dir --libdir=$lib_dir --with-toolset=gcc
- # specify more compiler flags
- mv project-config.jam{,.original}
- sed -e 's/using gcc ;/using gcc : : : <linkflags>"-m'$model' -Wl,-rpath,'"'$ORIGIN'"'" <compileflags>"-m'$model' -march=native" <layout>system ;/' project-config.jam.original > project-config.jam
- # build
- ./bjam --build-type=minimal --layout=system -d+2 -j 4
- # install
- ./bjam --build-type=minimal --layout=system -d+2 install
Add Comment
Please, Sign In to add comment