pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/file Avoid errors on gcc2
details: https://anonhg.NetBSD.org/pkgsrc/rev/5c65a86f247a
branches: trunk
changeset: 568949:5c65a86f247a
user: abs <abs%pkgsrc.org@localhost>
date: Wed Dec 30 11:00:24 2009 +0000
description:
Avoid errors on gcc2
diffstat:
sysutils/file/Makefile | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 04d63f650438 -r 5c65a86f247a sysutils/file/Makefile
--- a/sysutils/file/Makefile Wed Dec 30 04:11:02 2009 +0000
+++ b/sysutils/file/Makefile Wed Dec 30 11:00:24 2009 +0000
@@ -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 @@
.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
Home |
Main Index |
Thread Index |
Old Index