summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-10-05 16:07:58 +0000
committerjoerg <joerg@pkgsrc.org>2006-10-05 16:07:58 +0000
commit51c600c87675e18482fb2aceabcab1813efcd16c (patch)
treec8dd3a14aea1cb04c17882161503513d712db19d /lang
parent6369f495214b6e9b6cc8883a55bce7febc09477d (diff)
downloadpkgsrc-51c600c87675e18482fb2aceabcab1813efcd16c.tar.gz
When using pth as thread implementation, also include pthread-sem.
Supposed to fix PR 26051.
Diffstat (limited to 'lang')
-rw-r--r--lang/onyx/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/lang/onyx/Makefile b/lang/onyx/Makefile
index 33bd18c95cb..682228da6e5 100644
--- a/lang/onyx/Makefile
+++ b/lang/onyx/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2006/04/06 06:22:12 reed Exp $
+# $NetBSD: Makefile,v 1.20 2006/10/05 16:07:58 joerg Exp $
DISTNAME= onyx-${VERS}
PKGREVISION= 2
@@ -35,8 +35,9 @@ post-install:
.include "../../devel/pcre/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
-.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
-CONFIGURE_ARGS+= --disable-threads
+.if ${PTHREAD_TYPE} == "pth"
+.include "../../devel/pthread-sem/buildlink3.mk"
+LIBS+= -lsemaphore
.endif
.include "../../mk/bsd.pkg.mk"