pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/file Rename -Wextra with -W if gcc-{2,3}, wor...
details: https://anonhg.NetBSD.org/pkgsrc/rev/4d0ed26a842c
branches: trunk
changeset: 553576:4d0ed26a842c
user: obache <obache%pkgsrc.org@localhost>
date: Sun Jan 25 12:30:47 2009 +0000
description:
Rename -Wextra with -W if gcc-{2,3}, workaround of PR 40123.
diffstat:
sysutils/file/Makefile | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 7e191f2ef5ba -r 4d0ed26a842c sysutils/file/Makefile
--- a/sysutils/file/Makefile Sun Jan 25 12:18:01 2009 +0000
+++ b/sysutils/file/Makefile Sun Jan 25 12:30:47 2009 +0000
@@ -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 @@
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"
Home |
Main Index |
Thread Index |
Old Index