summaryrefslogtreecommitdiff
path: root/mk/pthread.buildlink.mk
diff options
context:
space:
mode:
authorskrll <skrll@pkgsrc.org>2002-05-29 08:19:55 +0000
committerskrll <skrll@pkgsrc.org>2002-05-29 08:19:55 +0000
commit19f99199a446f0f3b916f761cbce7dc03f53acfd (patch)
tree02f8d37de2d18f473f58033147456742591ec1be /mk/pthread.buildlink.mk
parent514757bfdaf753c4ffed9854b699d5d4443d7367 (diff)
downloadpkgsrc-19f99199a446f0f3b916f761cbce7dc03f53acfd.tar.gz
Add a new variation on the pth package that has --enable-syscall-hard
as part of the configure options. A pth with this option enabled provides some semblance of pre-emptive threads - enough for things like xmms and knode to actually work. Add the necessary glue to pthread.buildlink.mk and appropriate CONFLICT into pth. It is hoped that the pkgs that currently use -D_POSIX_THREAD_SYSCALL_SOFT=1 will be tested against pth-syscall and changed to use it. The goal is to be able to add --enable-syscall-hard to devel/pth and retire pth-syscall. Baby steps...
Diffstat (limited to 'mk/pthread.buildlink.mk')
-rw-r--r--mk/pthread.buildlink.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/pthread.buildlink.mk b/mk/pthread.buildlink.mk
index e756837012a..b9c7f36e60d 100644
--- a/mk/pthread.buildlink.mk
+++ b/mk/pthread.buildlink.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pthread.buildlink.mk,v 1.4 2002/03/23 01:24:44 dmcmahill Exp $
+# $NetBSD: pthread.buildlink.mk,v 1.5 2002/05/29 08:19:55 skrll Exp $
#
# This Makefile fragment is included by packages that use pthreads.
# This Makefile fragment is also included directly by bsd.prefs.mk.
@@ -34,7 +34,7 @@
# pthread.buildlink.mk
#
.if defined(USE_PTHREAD)
-_PKG_PTHREADS?= pth ptl2 mit-pthreads unproven-pthreads
+_PKG_PTHREADS?= pth pth-syscall ptl2 mit-pthreads unproven-pthreads
.for __valid_pthread__ in ${USE_PTHREAD}
. if !empty(_PKG_PTHREADS:M${__valid_pthread__})
@@ -85,6 +85,8 @@ pthread-buildlink: _BUILDLINK_USE
.elif ${PTHREAD_TYPE} == "pth"
. include "../../devel/pth/buildlink.mk"
+.elif ${PTHREAD_TYPE} == "pth-syscall"
+. include "../../devel/pth-syscall/buildlink.mk"
#
# XXX The remaining pthread packages here need to have sensible buildlink.mk
# XXX created that may all be used more-or-less interchangeably. This is