Source-Changes-HG archive

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

[src/trunk]: src use



details:   https://anonhg.NetBSD.org/src/rev/e2130d09dcc1
branches:  trunk
changeset: 751909:e2130d09dcc1
user:      plunky <plunky%NetBSD.org@localhost>
date:      Mon Feb 08 07:56:06 2010 +0000

description:
use

.if defined(HAVE_GCC) && ${HAVE_GCC} == 4

rather than

.if ${HAVE_GCC} == 4

as HAVE_GCC may be undefined

diffstat:

 external/bsd/am-utils/bin/amd/Makefile    |  4 ++--
 external/bsd/am-utils/bin/amq/Makefile    |  4 ++--
 external/bsd/am-utils/bin/pawd/Makefile   |  4 ++--
 external/bsd/am-utils/lib/libamu/Makefile |  4 ++--
 sbin/mount_smbfs/Makefile.inc             |  4 ++--
 5 files changed, 10 insertions(+), 10 deletions(-)

diffs (90 lines):

diff -r 812fe9e0b368 -r e2130d09dcc1 external/bsd/am-utils/bin/amd/Makefile
--- a/external/bsd/am-utils/bin/amd/Makefile    Mon Feb 08 03:36:16 2010 +0000
+++ b/external/bsd/am-utils/bin/amd/Makefile    Mon Feb 08 07:56:06 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.4 2009/10/29 14:42:54 christos Exp $
+#      $NetBSD: Makefile,v 1.5 2010/02/08 07:56:38 plunky Exp $
 
 .include "${.CURDIR}/../Makefile.inc"
 
@@ -44,7 +44,7 @@
 SRCS+= info_nis.c
 .endif
 
-.if ${HAVE_GCC} == 4
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
 COPTS.amq_subr.c+=     -fno-strict-aliasing
 .endif
 
diff -r 812fe9e0b368 -r e2130d09dcc1 external/bsd/am-utils/bin/amq/Makefile
--- a/external/bsd/am-utils/bin/amq/Makefile    Mon Feb 08 03:36:16 2010 +0000
+++ b/external/bsd/am-utils/bin/amq/Makefile    Mon Feb 08 07:56:06 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.1 2008/09/19 21:38:40 christos Exp $
+#      $NetBSD: Makefile,v 1.2 2010/02/08 07:56:38 plunky Exp $
 
 .include "${.CURDIR}/../Makefile.inc"
 
@@ -13,7 +13,7 @@
 CPPFLAGS+=     -I${DIST}
 LDADD+=                ${LIBAMU}
 
-.if ${HAVE_GCC} == 4
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
 COPTS.amq_xdr.c+=      -fno-strict-aliasing
 COPTS.amq.c+=          -fno-strict-aliasing
 .endif
diff -r 812fe9e0b368 -r e2130d09dcc1 external/bsd/am-utils/bin/pawd/Makefile
--- a/external/bsd/am-utils/bin/pawd/Makefile   Mon Feb 08 03:36:16 2010 +0000
+++ b/external/bsd/am-utils/bin/pawd/Makefile   Mon Feb 08 07:56:06 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.2 2008/09/20 10:45:48 mrg Exp $
+#      $NetBSD: Makefile,v 1.3 2010/02/08 07:56:38 plunky Exp $
 
 BINDIR=        /usr/bin
 
@@ -15,7 +15,7 @@
 CPPFLAGS+=     -I${DIST}
 LDADD+=                ${LIBAMU}
 
-.if ${HAVE_GCC} == 4
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
 COPTS.amq_xdr.c+=      -fno-strict-aliasing
 .endif
 
diff -r 812fe9e0b368 -r e2130d09dcc1 external/bsd/am-utils/lib/libamu/Makefile
--- a/external/bsd/am-utils/lib/libamu/Makefile Mon Feb 08 03:36:16 2010 +0000
+++ b/external/bsd/am-utils/lib/libamu/Makefile Mon Feb 08 07:56:06 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.1 2008/09/19 21:38:41 christos Exp $
+#      $NetBSD: Makefile,v 1.2 2010/02/08 07:56:38 plunky Exp $
 
 NOLINKLIB=     # defined
 
@@ -18,7 +18,7 @@
        wire.c xdr_func.c xutil.c
 
 # XXX
-.if ${HAVE_GCC} == 4
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
 COPTS.xdr_func.c+=     -fno-strict-aliasing
 .endif
 
diff -r 812fe9e0b368 -r e2130d09dcc1 sbin/mount_smbfs/Makefile.inc
--- a/sbin/mount_smbfs/Makefile.inc     Mon Feb 08 03:36:16 2010 +0000
+++ b/sbin/mount_smbfs/Makefile.inc     Mon Feb 08 07:56:06 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.1 2009/09/04 18:25:56 pooka Exp $
+#      $NetBSD: Makefile.inc,v 1.2 2010/02/08 07:56:06 plunky Exp $
 #
 
 SRCS+= rcfile.c ctx.c cfopt.c subr.c nls.c rap.c mbuf.c rq.c file.c \
@@ -13,7 +13,7 @@
 DPADD+=${LIBUTIL}
 LDADD+=-lutil
 
-.if ${HAVE_GCC} == 4
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
 .for f in ctx mbuf nb_name nbns_rq
 COPTS.${f}.c+=       -Wno-pointer-sign
 .endfor



Home | Main Index | Thread Index | Old Index