summaryrefslogtreecommitdiff
path: root/devel/boost-libs
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2016-11-01 12:32:01 +0000
committerjperkin <jperkin@pkgsrc.org>2016-11-01 12:32:01 +0000
commitbde3eb32e210be9eb106d63c608766f7805e967a (patch)
tree7d2026e1a59fc05516f6518fab1c09579305d49e /devel/boost-libs
parent9b5f1d90e7d8f34c9492e2c2c3dc2ea527c54a12 (diff)
downloadpkgsrc-bde3eb32e210be9eb106d63c608766f7805e967a.tar.gz
Handle lack of thread_local support in older Darwin clang.
Diffstat (limited to 'devel/boost-libs')
-rw-r--r--devel/boost-libs/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/devel/boost-libs/Makefile b/devel/boost-libs/Makefile
index 9a12f99b055..9a1d9758295 100644
--- a/devel/boost-libs/Makefile
+++ b/devel/boost-libs/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.44 2016/06/15 18:29:59 rumko Exp $
+# $NetBSD: Makefile,v 1.45 2016/11/01 12:32:01 jperkin Exp $
BOOST_PACKAGE= libs
BOOST_COMMENT= (binary libraries)
@@ -10,7 +10,7 @@ BOOST_INSTALL_LIBS= yes
INSTALLATION_DIRS+= lib
BJAM_ARGS+= --without-python
-PLIST_VARS+= context log long_double_math
+PLIST_VARS+= context fiber log long_double_math
.if ${OPSYS} == "NetBSD" && ((${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "sparc64") || (!empty(MACHINE_ARCH:Mearm*) && !empty(PKGSRC_COMPILER:Mgcc)))
BJAM_ARGS+= pch=off
@@ -29,6 +29,13 @@ BJAM_ARGS+= --without-log
PLIST.log= yes
.endif
+# fiber requires thread_local support, unavailable in older Darwin clang
+.if ${OPSYS} == "Darwin" && ${OS_VERSION:R} < 14
+BJAM_ARGS+= --without-fiber
+.else
+PLIST.fiber= yes
+.endif
+
# Long double math functions are not available on Darwin. See
# boost/math/tools/config.hpp:53
.if ${OPSYS} != "NetBSD" && ${OPSYS} != "FreeBSD" && \