export PATH=$HOME/stuff/openwrt/cross/bin:$PATH
export CROSSARGS="--host=mipsel-linux --target=mipsel-linux"
echo "using gcc : mipsel : mipsel-linux-g++ : <cxxflags>-mips32 <archiver>mipsel-linux-ar ;" > tools/build/v2/user-config.jam
patch
./bootstrap.sh --with-libraries=date_time,system,thread,test,regex
./bjam toolset=gcc-mipsel link=static threading=single architecture=mips32
