diff options
author | jlam <jlam@pkgsrc.org> | 2004-11-10 17:29:37 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-11-10 17:29:37 +0000 |
commit | 0d1a6b1c294fa0d9d06c6a882f794b0ed3371bf5 (patch) | |
tree | b00fe37643f91701f7ee5c83b2d131ba4c105db8 /mk | |
parent | b64820bb7ac0eab7cdace08cdc43f31422dfe030 (diff) | |
download | pkgsrc-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.mk | 4 |
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}. # |