pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/wrapper Added a transformation file for gcc to chec...
details: https://anonhg.NetBSD.org/pkgsrc/rev/70c40bff5afa
branches: trunk
changeset: 521889:70c40bff5afa
user: rillig <rillig%pkgsrc.org@localhost>
date: Sun Nov 26 09:56:46 2006 +0000
description:
Added a transformation file for gcc to check for unknown options.
diffstat:
mk/wrapper/bsd.wrapper.mk | 8 +++++++-
mk/wrapper/transform-gcc | 42 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 49 insertions(+), 1 deletions(-)
diffs (75 lines):
diff -r 63cbafe1f607 -r 70c40bff5afa mk/wrapper/bsd.wrapper.mk
--- a/mk/wrapper/bsd.wrapper.mk Sun Nov 26 09:55:52 2006 +0000
+++ b/mk/wrapper/bsd.wrapper.mk Sun Nov 26 09:56:46 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.wrapper.mk,v 1.57 2006/11/11 07:44:46 rillig Exp $
+# $NetBSD: bsd.wrapper.mk,v 1.58 2006/11/26 09:56:46 rillig Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -291,6 +291,11 @@
_WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC}
.endif
+.if !empty(PKGSRC_COMPILER:Mgcc)
+_WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-gcc
+_WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC}
+.endif
+
_WRAP_CMD_SINK.LD= ${WRAPPER_TMPDIR}/cmd-sink-ld
_WRAP_SKIP_TRANSFORM.IMAKE= yes
@@ -478,6 +483,7 @@
cmd-sink-unixware-gcc \
transform-aix-cc \
transform-ccc-cc \
+ transform-gcc \
transform-icc-cc \
transform-ido-cc \
transform-mipspro-cc \
diff -r 63cbafe1f607 -r 70c40bff5afa mk/wrapper/transform-gcc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mk/wrapper/transform-gcc Sun Nov 26 09:56:46 2006 +0000
@@ -0,0 +1,42 @@
+# $NetBSD: transform-gcc,v 1.1 2006/11/26 09:56:46 rillig Exp $
+#
+
+transform_setname "transform-gcc"
+case $arg in
+-c|\
+-D?*|\
+-I?*|\
+-L?*|\
+-l?*|\
+-O|\
+-O[012345s]*|\
+-o|\
+-std=c99|\
+-U?*|\
+-W|\
+-W[cLlS],*|\
+-Wall|\
+-Wcast-qual|\
+-Wextra|\
+-Werror|\
+-Wformat=[012]|\
+-Wmissing-prototypes|\
+-Wno-error|\
+-Wno-long-long|\
+-Wno-traditional|\
+-Wno-uninitialized|\
+-Wno-unused|\
+-Wno-write-strings|\
+-Wpointer-arith|\
+-Wreturn-type|\
+-Wshadow|\
+-Wsign-compare|\
+-Wstrict-prototypes|\
+-Wswitch|\
+-Wwrite-strings)
+ transform_pass
+ ;;
+-*)
+ transform_discard_with_warning
+ ;;
+esac
Home |
Main Index |
Thread Index |
Old Index