summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorabs <abs>2009-12-30 11:00:24 +0000
committerabs <abs>2009-12-30 11:00:24 +0000
commit70a1636861bd35df38a50c2cab6b023b02c40d23 (patch)
tree4863158f3ee4182c65ecbbf74857f8eb692675a0 /sysutils
parentf6df31a444de692dfa04f097b43c26c9e3d8800d (diff)
downloadpkgsrc-70a1636861bd35df38a50c2cab6b023b02c40d23.tar.gz
Avoid errors on gcc2
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/file/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysutils/file/Makefile b/sysutils/file/Makefile
index 4413fbadfd6..4eed889b9a4 100644
--- a/sysutils/file/Makefile
+++ b/sysutils/file/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2009/05/21 15:58:17 sno Exp $
+# $NetBSD: Makefile,v 1.23 2009/12/30 11:00:24 abs Exp $
DISTNAME= file-5.03
CATEGORIES= sysutils
@@ -28,6 +28,10 @@ TEST_TARGET= check
.if !empty(CC_VERSION:Mgcc-[23]*)
BUILDLINK_TRANSFORM+= rename:-Wextra:-W
.endif
+# gcc<3 does not know -Wunused-parameter
+.if !empty(CC_VERSION:Mgcc-2*)
+BUILDLINK_TRANSFORM+= rm:-Wunused-parameter
+.endif
.if ${LOWER_OPSYS} == "aix"
CFLAGS+= -D_LINUX_SOURCE_COMPAT