diff options
author | pho <pho@pkgsrc.org> | 2014-05-10 04:09:41 +0000 |
---|---|---|
committer | pho <pho@pkgsrc.org> | 2014-05-10 04:09:41 +0000 |
commit | fd0f494c884549f6f3a6d8f98b60ec58937c9e23 (patch) | |
tree | bf70ef9308380c87fed8aa5cd375efc23ca153e3 /textproc/json-c/Makefile | |
parent | ec99dc503bc6e6b4ffda40342fbd3d1daf6ab278 (diff) | |
download | pkgsrc-fd0f494c884549f6f3a6d8f98b60ec58937c9e23.tar.gz |
Fix build errors on GCC < 4.2
Diffstat (limited to 'textproc/json-c/Makefile')
-rw-r--r-- | textproc/json-c/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/textproc/json-c/Makefile b/textproc/json-c/Makefile index f0c831cce58..34061c3e116 100644 --- a/textproc/json-c/Makefile +++ b/textproc/json-c/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2014/04/20 00:26:15 ryoon Exp $ +# $NetBSD: Makefile,v 1.9 2014/05/10 04:09:41 pho Exp $ DISTNAME= json-c-0.12 PKGREVISION= 1 @@ -25,4 +25,9 @@ CONFIGURE_ARGS+= --disable-oldname-compat CFLAGS+= -Wno-tautological-compare -Wno-unused-value .endif +# gcc < 4.2 does not have -Wno-error= option. +.if !empty(CC_VERSION:Mgcc-3*) || !empty(CC_VERSION:Mgcc-4.[01]*) +BUILDLINK_TRANSFORM+= rm:-Werror rm:-Wno-error=deprecated-declarations +.endif + .include "../../mk/bsd.pkg.mk" |