forked from StephanTLavavej/mingw-distro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboost.sh
33 lines (25 loc) · 1.07 KB
/
boost.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
source ./0_append_distro_path.sh
extract_file boost_1_61_0.tar
cd /c/temp/gcc
mv boost_1_61_0 src
mkdir -p dest/include
cd src
./bootstrap.sh || fail_with boost 1 - EPIC FAIL
# --without-context : https://svn.boost.org/trac/boost/ticket/7262
# --without-coroutine : Boost.Coroutine depends on Boost.Context.
# --without-coroutine2 : Ditto.
# --without-python : I don't have Python, but that isn't being correctly detected anymore.
./b2 $X_B2_JOBS --without-context --without-coroutine --without-coroutine2 --without-python \
variant=release link=static runtime-link=static threading=multi --stagedir=/c/temp/gcc/dest stage \
-sNO_BZIP2 -sBZIP2_BINARY=bz2 -sBZIP2_INCLUDE=$X_DISTRO_INC -sBZIP2_LIBPATH=$X_DISTRO_LIB \
-sNO_ZLIB -sZLIB_BINARY=z -sZLIB_INCLUDE=$X_DISTRO_INC -sZLIB_LIBPATH=$X_DISTRO_LIB || fail_with boost 2 - EPIC FAIL
cd /c/temp/gcc/dest/lib
for i in *.a; do mv $i ${i%-mgw*.a}.a; done
cd /c/temp/gcc
mv src/boost dest/include
mv dest boost-1.61.0
cd boost-1.61.0
7z -mx0 a ../boost-1.61.0.7z * || fail_with boost-1.61.0.7z - EPIC FAIL
cd /c/temp/gcc
rm -rf src