pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/compiler GCC has this annoying behaviour where it a...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0c330716e8a7
branches: trunk
changeset: 471765:0c330716e8a7
user: jlam <jlam%pkgsrc.org@localhost>
date: Tue Mar 30 21:39:24 2004 +0000
description:
GCC has this annoying behaviour where it advocates in a multi-line
banner the use of "#include" over "#import" when including headers.
This generates a _huge_ number of warnings when building practically all
Objective-C code where it is convention to use "#import". Suppress
the warning if we're building Objective-C code using GCC by passing
-Wno-import to the compiler.
diffstat:
mk/compiler/gcc.mk | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r 150ead17e263 -r 0c330716e8a7 mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk Tue Mar 30 21:27:29 2004 +0000
+++ b/mk/compiler/gcc.mk Tue Mar 30 21:39:24 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.61 2004/03/13 20:02:52 jlam Exp $
+# $NetBSD: gcc.mk,v 1.62 2004/03/30 21:39:24 jlam Exp $
.if !defined(COMPILER_GCC_MK)
COMPILER_GCC_MK= defined
@@ -122,6 +122,16 @@
_LANGUAGES.gcc+= ${LANGUAGES.gcc:M${_lang_}}
.endfor
+# GCC has this annoying behaviour where it advocates in a multi-line
+# banner the use of "#include" over "#import" when including headers.
+# This generates a huge number of warnings when building practically all
+# Objective-C code where it is convention to use "#import". Suppress
+# the warning if we're building Objective-C code using GCC.
+#
+.if !empty(_LANGUAGES.gcc:Mobjc)
+CFLAGS+= -Wno-import
+.endif
+
.if !empty(_NEED_GCC2:M[yY][eE][sS])
#
# We require gcc-2.x in the lang/gcc directory.
Home |
Main Index |
Thread Index |
Old Index