diff options
author | jlam <jlam@pkgsrc.org> | 2002-08-08 15:34:17 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-08-08 15:34:17 +0000 |
commit | 11382ac762222dd034eee44590342d2b86a6c7d5 (patch) | |
tree | b5d70670384561ba8bb48d8e95a13729f2c2de2f /mk | |
parent | 264aa431e2c70c77570839241e246c05bf3f96aa (diff) | |
download | pkgsrc-11382ac762222dd034eee44590342d2b86a6c7d5.tar.gz |
Depend on the hard-syscall version of pth if we using it as a pthread
replacement via pthread.buildlink.mk.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/pthread.buildlink.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/pthread.buildlink.mk b/mk/pthread.buildlink.mk index 852d3fc58f0..8a4a1fc5b61 100644 --- a/mk/pthread.buildlink.mk +++ b/mk/pthread.buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: pthread.buildlink.mk,v 1.7 2002/08/02 05:38:37 jlam Exp $ +# $NetBSD: pthread.buildlink.mk,v 1.8 2002/08/08 15:34:17 jlam Exp $ # # The pthreads strategy for pkgsrc is to "bless" a particular pthread # package as the Official Pthread Replacement (OPR). A package that uses @@ -102,6 +102,7 @@ # can actually be used to replace a native pthreads. # _PKG_PTHREAD?= pth +_PKG_PTHREAD_DEPENDS?= pth>=1.4.1nb2 _PKG_PTHREAD_PKGSRCDIR?= ../../devel/${_PKG_PTHREAD} _PKG_PTHREAD_BUILDLINK_MK?= ${_PKG_PTHREAD_PKGSRCDIR}/buildlink.mk _PKG_PTHREAD_COMPAT_PATTERNS= *-*-* @@ -157,6 +158,9 @@ pthread-buildlink: _BUILDLINK_USE .elif ${PTHREAD_TYPE} == "${_PKG_PTHREAD}" . if exists(${_PKG_PTHREAD_BUILDLINK_MK}) +. if !empty(_PKG_PTHREAD_DEPENDS) +DEPENDS+= ${_PKG_PTHREAD_DEPENDS}:${_PKG_PTHREAD_PKGSRCDIR} +. endif . include "${_PKG_PTHREAD_BUILDLINK_MK}" . else IGNORE= "${PKGNAME} needs pthreads, but ${_PKG_PTHREAD_BUILDLINK_MK} is missing." |