Revision b2863342530d5e590a9a69dfd976f6c67f48dd9c authored by Thomas Saigre on 14 June 2023, 12:39:27 UTC, committed by Thomas Saigre on 14 June 2023, 12:48:16 UTC
1 parent b71939d
Raw File
boost.sh
#! /bin/bash

. ~/.bash_profile
export PATH=$WORK/bgq/gnu-linux-4.7.2/bin:/bgsys/drivers/V1R2M1/ppc64/comm/bin/gcc/:$PATH
#module load compilers/bgq-gcc47.feelpp
#module load fermi/bgqgcc472.feelpp
prefix=$WORK/local/boost/1.54-bgq
cat > user-config.jam << EOF
using mpi : mpicc : :  ;
EOF
export CXX=powerpc64-bgq-linux-g++
export CC=powerpc64-bgq-linux-gcc
#./b2 clean
#./b2 toolset=clang-bg cxxflags="-stdlib=libc++ -std=c++11" linkflags="-stdlib=libc++"
#./b2 install -j20 -d2 --prefix=$prefix toolset=clang-bg cxxflags="-stdlib=libc++ -std=c++11" linkflags="-stdlib=libc++" \
./b2 install -j20 -d2 --prefix=$prefix toolset=gcc-bgq cxxflags="-std=c++11 -Bdynamic -fPIC"  linkflags="-std=c++11 -dynamic"\
                --layout=tagged \
                --debug-configuration \
                --without-python \
                --user-config=user-config.jam \
                -sBZIP2_INCLUDE=${prefix}/include \
                -sBZIP2_LIBPATH=${prefix}/lib \
                -sEXPAT_INCLUDE=${prefix}/include \
                -sEXPAT_LIBPATH=${prefix}/lib \
                -sZLIB_INCLUDE=${prefix}/include \
                -sZLIB_LIBPATH=${prefix}/lib \
                -sICU_PATH=${prefix} \
                variant=release \
                threading=single,multi \
                link=shared,static
back to top