diff options
author | recht <recht@pkgsrc.org> | 2004-04-27 11:54:20 +0000 |
---|---|---|
committer | recht <recht@pkgsrc.org> | 2004-04-27 11:54:20 +0000 |
commit | 3cc091fb8a15cd415231e8ab1770caf5cb61eccc (patch) | |
tree | fd924a461af8d84946564e912364e0e11685dcfa | |
parent | 116a957ebb8f1431cded0f02d944818446883b45 (diff) | |
download | pkgsrc-3cc091fb8a15cd415231e8ab1770caf5cb61eccc.tar.gz |
Only enable-thread safety on systems which have native threads to avoid
pulling in pth.
Pointed out by seb@.
-rw-r--r-- | databases/postgresql74-lib/Makefile | 7 |
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" |