summaryrefslogtreecommitdiff
path: root/databases/postgresql74-lib
diff options
context:
space:
mode:
authorrecht <recht@pkgsrc.org>2004-04-27 11:54:20 +0000
committerrecht <recht@pkgsrc.org>2004-04-27 11:54:20 +0000
commitbdba030bb80570f17bd5fc68ea6d0063382a018c (patch)
treefd924a461af8d84946564e912364e0e11685dcfa /databases/postgresql74-lib
parente0db2f930c9983098bea625afb9725a10597751a (diff)
downloadpkgsrc-bdba030bb80570f17bd5fc68ea6d0063382a018c.tar.gz
Only enable-thread safety on systems which have native threads to avoid
pulling in pth. Pointed out by seb@.
Diffstat (limited to 'databases/postgresql74-lib')
-rw-r--r--databases/postgresql74-lib/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/databases/postgresql74-lib/Makefile b/databases/postgresql74-lib/Makefile
index 4308bcabce1..fb1bc61b642 100644
--- a/databases/postgresql74-lib/Makefile
+++ b/databases/postgresql74-lib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2004/04/25 23:14:40 seb Exp $
+# $NetBSD: Makefile,v 1.4 2004/04/27 11:54:20 recht Exp $
PKGNAME= postgresql-lib-${BASE_VERS}
PKGREVISION= 1
@@ -17,7 +17,9 @@ BUILD_DIRS+= ${WRKSRC}/src/pl
# As told by Josh Berkus
# currently broken for SunOS, will be fixed in 7.4.3
-.if (${OPSYS} != "SunOS")
+.include "../../mk/pthread.buildlink3.mk"
+.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native" \
+ && ${OPSYS} != "SunOS"
CONFIGURE_ARGS+= --enable-thread-safety
.endif
@@ -45,5 +47,4 @@ post-install:
-f ${WRKSRC}/doc/man.tar.gz
.include "../../security/openssl/buildlink3.mk"
-.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"