diff options
author | rmind <rmind@pkgsrc.org> | 2007-11-29 23:41:35 +0000 |
---|---|---|
committer | rmind <rmind@pkgsrc.org> | 2007-11-29 23:41:35 +0000 |
commit | b161625cc51ba3defd88d8d7f11784da25faf22a (patch) | |
tree | 3adf4de7d72adbbf1e595e214bfdbc1375966d18 /databases/postgresql82-client | |
parent | 282cf8f7f12ce86f526e3dd3e06efda633f19935 (diff) | |
download | pkgsrc-b161625cc51ba3defd88d8d7f11784da25faf22a.tar.gz |
Configure PostgreSQL client with --enable-thread-safety on NetBSD 4.0 and
newer versions. This gives a performance improvement on client-side,
especially on NetBSD -current.
Reviewed by <agc>.
Diffstat (limited to 'databases/postgresql82-client')
-rw-r--r-- | databases/postgresql82-client/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/databases/postgresql82-client/Makefile b/databases/postgresql82-client/Makefile index 25bea98e8d6..c8e97261855 100644 --- a/databases/postgresql82-client/Makefile +++ b/databases/postgresql82-client/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2006/12/09 15:34:59 adam Exp $ +# $NetBSD: Makefile,v 1.2 2007/11/29 23:41:35 rmind Exp $ PKGNAME= postgresql82-client-${BASE_VERS} COMMENT= PostgreSQL database client programs @@ -17,10 +17,11 @@ CONFLICTS+= postgresql82-lib-[0-9]* CONFLICTS+= postgresql82-docs-[0-9]* # 1. The thread-safety test in ${WRSRC}/src/tools/thread does not pass on -# NetBSD (missing strerror_r) or DragonFly. +# NetBSD earler than 4.0 or DragonFly. # 2. configure with --enable-thread-safety fails on OpenBSD. # -.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "OpenBSD" +.if (${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[0-3].*)) || \ + ${OPSYS} == "DragonFly" || ${OPSYS} == "OpenBSD" PGSQL_THREAD_SAFETY?= no .endif PGSQL_THREAD_SAFETY?= yes |