diff options
author | obache <obache@pkgsrc.org> | 2009-01-25 12:30:47 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2009-01-25 12:30:47 +0000 |
commit | 47f9832cec4485d0d3b54fcdede91db12e590118 (patch) | |
tree | 202639a072e1a97aa683a98faf7de1dff6d53a10 /sysutils | |
parent | 0a4dae9c26b0da4ef2bf45a2bc58a795567c63bc (diff) | |
download | pkgsrc-47f9832cec4485d0d3b54fcdede91db12e590118.tar.gz |
Rename -Wextra with -W if gcc-{2,3}, workaround of PR 40123.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/file/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sysutils/file/Makefile b/sysutils/file/Makefile index b31ea6e5d7a..a975c7e4950 100644 --- a/sysutils/file/Makefile +++ b/sysutils/file/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2009/01/25 05:33:17 obache Exp $ +# $NetBSD: Makefile,v 1.19 2009/01/25 12:30:47 obache Exp $ DISTNAME= file-4.26 CATEGORIES= sysutils @@ -21,6 +21,14 @@ MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} TEST_TARGET= check +.include "../../mk/compiler.mk" + +# gcc<4 does not know -Wextra. +# XXX: should be treated with wrappers automatically. +.if !empty(CC_VERSION:Mgcc-[23]*) +BUILDLINK_TRANSFORM+= rename:-Wextra:-W +.endif + .include "../../devel/zlib/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |