diff options
Diffstat (limited to 'contrib/build-boost-mingw-cross.sh')
-rwxr-xr-x | contrib/build-boost-mingw-cross.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/build-boost-mingw-cross.sh b/contrib/build-boost-mingw-cross.sh new file mode 100755 index 0000000..bdad77d --- /dev/null +++ b/contrib/build-boost-mingw-cross.sh @@ -0,0 +1,21 @@ +#!/bin/sh +set -e +BOOST=1.48.0 + +BOOST_DASH=`echo $BOOST | perl -ne 's/\./_/g; print'` +echo $BOOST_DASH +wget http://downloads.sourceforge.net/project/boost/boost/$BOOST/boost_${BOOST_DASH}.tar.bz2 -O - | tar xj + +cd boost_${BOOST_DASH} +./bootstrap.sh + +patch -p1 < ../boost_project-config.patch + +for target in w32 w64; do + ./b2 --layout=system variant=release threading=multi link=shared runtime-link=shared toolset=gcc-$target target-os=windows threadapi=win32 stage + mkdir -p ../boost-$target/include + mv stage/lib ../boost-$target/ + cp -r boost ../boost-$target/include + ./b2 --layout=system variant=release threading=multi link=shared runtime-link=shared toolset=gcc-$target target-os=windows threadapi=win32 stage --clean +done +rm -rf boost_${BOOST_DASH} |