Mon May 7 18:47:02 2018 UTC ()
devel/boost-libs: fiber doesn't build on Darwin-1[0-5].*

fiber requires thread_local, and clang in Xcode 7 or earlier doesn't
allow it.


(minskim)
diff -r1.68 -r1.69 pkgsrc/devel/boost-libs/Makefile

cvs diff -r1.68 -r1.69 pkgsrc/devel/boost-libs/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/boost-libs/Makefile 2018/05/06 18:56:35 1.68
+++ pkgsrc/devel/boost-libs/Makefile 2018/05/07 18:47:02 1.69
@@ -1,39 +1,40 @@ @@ -1,39 +1,40 @@
1# $NetBSD: Makefile,v 1.68 2018/05/06 18:56:35 minskim Exp $ 1# $NetBSD: Makefile,v 1.69 2018/05/07 18:47:02 minskim Exp $
2 2
3BOOST_PACKAGE= libs 3BOOST_PACKAGE= libs
4BOOST_COMMENT= (binary libraries) 4BOOST_COMMENT= (binary libraries)
5BOOST_CONFIG= installed 5BOOST_CONFIG= installed
6BOOST_INSTALL_LIBS= yes 6BOOST_INSTALL_LIBS= yes
7 7
8.include "../../meta-pkgs/boost/Makefile.common" 8.include "../../meta-pkgs/boost/Makefile.common"
9PKGREVISION= 1 9PKGREVISION= 1
10 10
11INSTALLATION_DIRS+= lib 11INSTALLATION_DIRS+= lib
12 12
13BJAM_ARGS+= --without-python 13BJAM_ARGS+= --without-python
14PLIST_VARS+= backtrace context fiber log longdbl 14PLIST_VARS+= backtrace context fiber log longdbl
15 15
16.if ${OPSYS} == "NetBSD" && ((${MACHINE_ARCH} == "i386") || (!empty(MACHINE_ARCH:Mearm*) && !empty(PKGSRC_COMPILER:Mgcc))) 16.if ${OPSYS} == "NetBSD" && ((${MACHINE_ARCH} == "i386") || (!empty(MACHINE_ARCH:Mearm*) && !empty(PKGSRC_COMPILER:Mgcc)))
17BJAM_ARGS+= pch=off 17BJAM_ARGS+= pch=off
18.endif 18.endif
19 19
20.if !empty(MACHINE_ARCH:Malpha) || !empty(MACHINE_ARCH:Mm68k) || !empty(MACHINE_ARCH:Msparc64) 20.if !empty(MACHINE_ARCH:Malpha) || !empty(MACHINE_ARCH:Mm68k) || !empty(MACHINE_ARCH:Msparc64)
21BJAM_ARGS+= --without-context 21BJAM_ARGS+= --without-context
22BJAM_ARGS+= --without-coroutine 22BJAM_ARGS+= --without-coroutine
23BJAM_ARGS+= --without-fiber 23BJAM_ARGS+= --without-fiber
24.else 24.else
25PLIST.context= yes 25PLIST.context= yes
26.if !(${OPSYS} == "NetBSD" && !empty(PKGSRC_COMPILER:Mgcc)) 26.if !(${OPSYS} == "NetBSD" && !empty(PKGSRC_COMPILER:Mgcc)) && \
 27 empty(MACHINE_PLATFORM:MDarwin-1[0-5].*-*)
27PLIST.fiber= yes 28PLIST.fiber= yes
28.endif 29.endif
29.endif 30.endif
30 31
31# Darwin GCC is unable to build Boost.Log 32# Darwin GCC is unable to build Boost.Log
32.if ${OPSYS} == "Darwin" && !empty(PKGSRC_COMPILER:Mgcc) 33.if ${OPSYS} == "Darwin" && !empty(PKGSRC_COMPILER:Mgcc)
33BJAM_ARGS+= --without-log 34BJAM_ARGS+= --without-log
34.else 35.else
35PLIST.log= yes 36PLIST.log= yes
36.endif 37.endif
37 38
38# FIXME: other systems might also not support 'long double' 39# FIXME: other systems might also not support 'long double'
39# see patch-boost_math_tools_config.hpp 40# see patch-boost_math_tools_config.hpp