diff options
author | seb <seb@pkgsrc.org> | 2004-03-29 15:16:58 +0000 |
---|---|---|
committer | seb <seb@pkgsrc.org> | 2004-03-29 15:16:58 +0000 |
commit | db7fd898791aea1a0e99abbf227df9fbd80191e4 (patch) | |
tree | 5ec72cda0b2deba7c53908b1c05874c45b836628 /mk/pthread.buildlink3.mk | |
parent | 13a5b1a453fc28393bdec5234d55696e42b5c94f (diff) | |
download | pkgsrc-db7fd898791aea1a0e99abbf227df9fbd80191e4.tar.gz |
When PTHREAD_TYPE is 'native' set USE_BUILTIN.pthread to YES and
add 'pthread' to BUILDLINK_PACKAGES so that
BUILDLINK_{{LD,C}FLAGS,LDADD}.pthread actually have an effect.
This should fix the build of at least tcl/tk related packages now
that tcl and tk packages are thread-aware.
Remove comments about linking native pthread libraries and headers into
${BUILDLINK_DIR} as this does not happen.
Diffstat (limited to 'mk/pthread.buildlink3.mk')
-rw-r--r-- | mk/pthread.buildlink3.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/pthread.buildlink3.mk b/mk/pthread.buildlink3.mk index 449e8ae9c75..4a0993a2d2d 100644 --- a/mk/pthread.buildlink3.mk +++ b/mk/pthread.buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: pthread.buildlink3.mk,v 1.3 2004/03/18 09:12:13 jlam Exp $ +# $NetBSD: pthread.buildlink3.mk,v 1.4 2004/03/29 15:16:58 seb Exp $ # # The pthreads strategy for pkgsrc is to "bless" a particular pthread # package as the Official Pthread Replacement (OPR). A package that uses @@ -141,9 +141,9 @@ PKG_SKIP_REASON= "${PKGNAME} requires a working pthreads implementation." .endif .if ${PTHREAD_TYPE} == "native" -# -# Link the native pthread libraries and headers into ${BUILDLINK_DIR}. -# +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npthread} +BUILDLINK_PACKAGES+= pthread +USE_BUILTIN.pthread= YES BUILDLINK_PREFIX.pthread= /usr BUILDLINK_CFLAGS.pthread= -pthread BUILDLINK_LDFLAGS.pthread= # empty |