diff options
author | marino <marino@pkgsrc.org> | 2012-10-07 10:24:54 +0000 |
---|---|---|
committer | marino <marino@pkgsrc.org> | 2012-10-07 10:24:54 +0000 |
commit | 677bdca1d4a06dd01c71e3b673a6dcf085035e83 (patch) | |
tree | 92a4413ab94a2bfe32c405a088ddc21c620f0867 /databases/postgresql91-client/Makefile | |
parent | fb659bb313fea1f3177ff0f88adc645a21961a4e (diff) | |
download | pkgsrc-677bdca1d4a06dd01c71e3b673a6dcf085035e83.tar.gz |
databases/postgresql91(-client): Fix build for gcc46 and gcc47
Postgresql91 uses non-constant array sizes in record definitions which
gcc enforces starting with 4.6. These index sizes are defined as macros
using functions such as offsetof. These patches introduce enums where
the macros become constant expressions which gcc 4.6+ will accept.
GCC 4.7 also introduces the unused-but-set-variable warning which is
popping up all over the place in pgsql91, so silence these warnings -
they are harmless and get optimized out anyway.
No revbump because functionality won't change on binaries generated with
gcc4.5 and below.
Diffstat (limited to 'databases/postgresql91-client/Makefile')
-rw-r--r-- | databases/postgresql91-client/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/databases/postgresql91-client/Makefile b/databases/postgresql91-client/Makefile index 196d3a3e686..44a2e555ad0 100644 --- a/databases/postgresql91-client/Makefile +++ b/databases/postgresql91-client/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2012/10/02 21:25:46 asau Exp $ +# $NetBSD: Makefile,v 1.9 2012/10/07 10:24:54 marino Exp $ PKGNAME= ${DISTNAME:C/-/91-client-/} COMMENT= PostgreSQL database client programs @@ -42,6 +42,9 @@ CONF_FILES+= share/postgresql/${f}.sample ${PKG_SYSCONFDIR}/${f} # XXX work around core dumps with the native libedit USE_GNU_READLINE= yes +# Silence unused but set variable warnings from GCC4.7 +CFLAGS+= -Wno-unused-but-set-variable + .include "../../devel/readline/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" .include "../../security/openssl/buildlink3.mk" |