pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/bootstrap-mk-files/files/mods Only gcc unders...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/51224ebe76c1
branches:  trunk
changeset: 532628:51224ebe76c1
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Aug 25 09:33:57 2007 +0000

description:
Only gcc understands those -W* flags for warnings.

diffstat:

 pkgtools/bootstrap-mk-files/files/mods/bsd.own.mk.in |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r f3fce06d1983 -r 51224ebe76c1 pkgtools/bootstrap-mk-files/files/mods/bsd.own.mk.in
--- a/pkgtools/bootstrap-mk-files/files/mods/bsd.own.mk.in      Sat Aug 25 09:22:24 2007 +0000
+++ b/pkgtools/bootstrap-mk-files/files/mods/bsd.own.mk.in      Sat Aug 25 09:33:57 2007 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.own.mk.in,v 1.1.1.1 2006/07/14 23:13:01 jlam Exp $
+#      $NetBSD: bsd.own.mk.in,v 1.2 2007/08/25 09:33:57 rillig Exp $
 
 .if !defined(_BSD_OWN_MK_)
 _BSD_OWN_MK_=1
@@ -129,9 +129,11 @@
 OBJECT_FMT?=a.out
 .endif
 
+.if ${CC:M*gcc*} != ""
 .if ${MACHINE_ARCH} == "x86_64"
 CFLAGS+=-Wno-format -fno-builtin
 .endif
+.endif
 
 # Location of the file that contains the major and minor numbers of the
 # version of a shared library.  If this file exists a shared library



Home | Main Index | Thread Index | Old Index