quit_if_fail "boost build ./b2 failed"
}
+package_specific_patch () {
+ if [ "$VERSION" = "1_63_0" ]; then
+ cd ${UNPACK_PATH}/${EXTRACTSTO}
+ cecho ${WARN} "applying patch for zlib bzip conflict"
+ patch -p0 --forward < ${ORIG_DIR}/${PROJECT}/patches/boost-conflict.patch || true
+ fi
+}
+
package_specific_register () {
export BOOST_DIR=${INSTALL_PATH}
export BOOST_ROOT=${INSTALL_PATH}
--- /dev/null
+--- tools/build/src/build/ac.jam 2016-12-22 13:33:21.000000000 +0100
++++ tools/build/src/build/ac.jam 2018-05-13 14:22:14.492433637 +0200
+@@ -76,14 +76,6 @@
+ rule find-library ( properties : names + : provided-path ? )
+ {
+ local result ;
+- if ! $(.main.cpp)
+- {
+- local a = [ class.new action : ac.generate-main :
+- [ property-set.empty ] ] ;
+- .main.cpp = [ virtual-target.register
+- [ class.new file-target main.cpp exact
+- : CPP : $(.project) : $(a) ] ] ;
+- }
+ if [ $(properties).get <link> ] = shared
+ {
+ link-opts = <link>shared <link>static ;
+@@ -100,8 +92,12 @@
+ {
+ local name = $(names-iter[1]) ;
+ local lib = [ construct-library $(name) : $(properties) : $(provided-path) ] ;
++ local a = [ class.new action : ac.generate-main :
++ [ property-set.empty ] ] ;
++ local main.cpp = [ virtual-target.register
++ [ class.new file-target main-$(name).cpp exact : CPP : $(.project) : $(a) ] ] ;
+ local test = [ generators.construct $(.project) $(name) : EXE
+- : [ $(properties).add $(lib[1]) ] : $(.main.cpp) $(lib[2-])
++ : [ $(properties).add $(lib[1]) ] : $(main.cpp) $(lib[2-])
+ : true ] ;
+ local jam-targets ;
+ for t in $(test[2-])