summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-11-10 17:29:37 +0000
committerjlam <jlam@pkgsrc.org>2004-11-10 17:29:37 +0000
commit0d1a6b1c294fa0d9d06c6a882f794b0ed3371bf5 (patch)
treeb00fe37643f91701f7ee5c83b2d131ba4c105db8 /mk
parentb64820bb7ac0eab7cdace08cdc43f31422dfe030 (diff)
downloadpkgsrc-0d1a6b1c294fa0d9d06c6a882f794b0ed3371bf5.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')
-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}.
#