summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorskrll <skrll>2002-05-29 08:19:55 +0000
committerskrll <skrll>2002-05-29 08:19:55 +0000
commitf732eb81f89f3bc63dd7a726c629afebad2efaef (patch)
tree02f8d37de2d18f473f58033147456742591ec1be /mk
parentd6867cdcd56f8c32fd35d39c13fcb558b3e32b0f (diff)
downloadpkgsrc-f732eb81f89f3bc63dd7a726c629afebad2efaef.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')
-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