Guest User

Untitled

a guest
Jul 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. arch=`uname -m`
  2. sys=`uname -s`
  3. model=64
  4. install_root=/home/$USER/${sys}-${arch}-${model}/build
  5. lib_dir=$install_root/lib/boost-1_39
  6. include_dir=$install_root/include/boost-1_39
  7.  
  8. # invoke configure
  9. ./bootstrap.sh --prefix=$install_root --exec-prefix=$install_root/bin --includedir=$include_dir --libdir=$lib_dir --with-toolset=gcc
  10.  
  11. # specify more compiler flags
  12. mv project-config.jam{,.original}
  13. 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
  14.  
  15. # build
  16. ./bjam --build-type=minimal --layout=system -d+2 -j 4
  17.  
  18. # install
  19. ./bjam --build-type=minimal --layout=system -d+2 install
Add Comment
Please, Sign In to add comment