summaryrefslogtreecommitdiff
path: root/mk/pthread.buildlink3.mk
diff options
context:
space:
mode:
authorjlam <jlam>2004-11-10 17:29:37 +0000
committerjlam <jlam>2004-11-10 17:29:37 +0000
commit4ded3ea9d098a5997e9bce6c422a6d66bccf7be8 (patch)
treeb00fe37643f91701f7ee5c83b2d131ba4c105db8 /mk/pthread.buildlink3.mk
parentf31ccceb9251edc6142b9220c904c2dca939c96d (diff)
downloadpkgsrc-4ded3ea9d098a5997e9bce6c422a6d66bccf7be8.tar.gz
If we are using native pthreads, then add "pthread" to BUILDLINK_PACKAGES
so that the buildlink3 framework knows to use the various BUILDLINK_*.pthread variables. This fixes a long-standing and long- overlooked bug in pthread.buildlink3.mk that has existed since the buildlink3 framework was initially committed. As a result of this change, modifications to packages to introduce PTHREAD_{CFLAGS,LDFLAGS} in various places to either the configure script or into Makefiles are probably no longer needed.
Diffstat (limited to 'mk/pthread.buildlink3.mk')
-rw-r--r--mk/pthread.buildlink3.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/pthread.buildlink3.mk b/mk/pthread.buildlink3.mk
index 2660a7e9c0e..c83f344e26a 100644
--- a/mk/pthread.buildlink3.mk
+++ b/mk/pthread.buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pthread.buildlink3.mk,v 1.11 2004/07/27 11:30:55 xtraeme Exp $
+# $NetBSD: pthread.buildlink3.mk,v 1.12 2004/11/10 17:29:37 jlam Exp $
#
# The pthreads strategy for pkgsrc is to "bless" a particular pthread
# package as the Official Pthread Replacement (OPR). A package that uses
@@ -141,6 +141,8 @@ PKG_SKIP_REASON= "${PKGNAME} requires a working pthreads implementation."
.endif
.if ${PTHREAD_TYPE} == "native"
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npthread}
+BUILDLINK_PACKAGES+= pthread
#
# Link the native pthread libraries and headers into ${BUILDLINK_DIR}.
#