Source-Changes-HG archive

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

[src/trunk]: src vax specific gcc 4.8.1 hacks



details:   https://anonhg.NetBSD.org/src/rev/5bf8b32344f7
branches:  trunk
changeset: 791240:5bf8b32344f7
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Nov 09 21:39:27 2013 +0000

description:
vax specific gcc 4.8.1 hacks

diffstat:

 distrib/utils/x_ping/Makefile               |  8 +++++++-
 external/gpl3/gdb/lib/libdecnumber/Makefile |  6 +++++-
 sbin/fsdb/Makefile                          |  4 ++--
 sbin/newfs_ext2fs/Makefile                  |  6 +++++-
 sbin/ping/Makefile                          |  6 +++++-
 usr.sbin/lmcconfig/Makefile                 |  9 ++++++++-
 usr.sbin/mtrace/Makefile                    |  6 +++++-
 7 files changed, 37 insertions(+), 8 deletions(-)

diffs (135 lines):

diff -r 01429c4064db -r 5bf8b32344f7 distrib/utils/x_ping/Makefile
--- a/distrib/utils/x_ping/Makefile     Sat Nov 09 21:38:57 2013 +0000
+++ b/distrib/utils/x_ping/Makefile     Sat Nov 09 21:39:27 2013 +0000
@@ -1,6 +1,8 @@
-# $NetBSD: Makefile,v 1.7 2010/12/13 19:19:10 pooka Exp $
+# $NetBSD: Makefile,v 1.8 2013/11/09 21:39:27 christos Exp $
 # Build ping without IPSEC
 
+.include <bsd.own.mk>
+
 SRCDIR=                ${.CURDIR}/../../../sbin/ping
 
 PROG=          ping
@@ -10,6 +12,10 @@
 DPADD=         ${LIBM}
 LDADD=         -lm
 
+.if ${MACHINE_ARCH} == "vax"
+COPTS.ping.c=-O0
+.endif
+
 .include <bsd.prog.mk>
 
 .PATH:         ${SRCDIR}
diff -r 01429c4064db -r 5bf8b32344f7 external/gpl3/gdb/lib/libdecnumber/Makefile
--- a/external/gpl3/gdb/lib/libdecnumber/Makefile       Sat Nov 09 21:38:57 2013 +0000
+++ b/external/gpl3/gdb/lib/libdecnumber/Makefile       Sat Nov 09 21:39:27 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.2 2013/08/04 23:41:43 matt Exp $
+#      $NetBSD: Makefile,v 1.3 2013/11/09 21:39:27 christos Exp $
 
 .include <bsd.own.mk>
 .include "../Makefile.inc"
@@ -18,6 +18,10 @@
 
 SRCS=          ${G_OBJS:.o=.c} ${G_SOURCES}
 
+.if ${MACHINE_ARCH} == "vax"
+COPTS.decNumber.c=-O0
+.endif
+
 .PATH: ${DIST}/libdecnumber ${DIST}/libdecnumber/dpd
 
 .include <bsd.lib.mk>
diff -r 01429c4064db -r 5bf8b32344f7 sbin/fsdb/Makefile
--- a/sbin/fsdb/Makefile        Sat Nov 09 21:38:57 2013 +0000
+++ b/sbin/fsdb/Makefile        Sat Nov 09 21:39:27 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.35 2013/11/09 16:01:58 christos Exp $
+#      $NetBSD: Makefile,v 1.36 2013/11/09 21:39:27 christos Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/5/93
 
 .include <bsd.own.mk>
@@ -42,6 +42,6 @@
 .include <bsd.prog.mk>
 
 # XXX
-.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45 && ${MACHINE_ARCH} == "vax"
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 45 && ${MACHINE_ARCH} == "vax"
 COPTS.fsdb.c+= -O0
 .endif
diff -r 01429c4064db -r 5bf8b32344f7 sbin/newfs_ext2fs/Makefile
--- a/sbin/newfs_ext2fs/Makefile        Sat Nov 09 21:38:57 2013 +0000
+++ b/sbin/newfs_ext2fs/Makefile        Sat Nov 09 21:39:27 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.5 2013/08/11 06:05:30 dholland Exp $
+#      $NetBSD: Makefile,v 1.6 2013/11/09 21:39:27 christos Exp $
 #      @(#)Makefile    8.2 (Berkeley) 3/27/94
 
 CWARNFLAGS+=   -Wno-sign-compare
@@ -20,4 +20,8 @@
 
 .PATH: ${NETBSDSRCDIR}/sys/ufs/ext2fs ${FSCK}
 
+.if ${MACHINE_ARCH} == "vax"
+COPTS.mke2fs.c=-O0
+.endif
+
 .include <bsd.prog.mk>
diff -r 01429c4064db -r 5bf8b32344f7 sbin/ping/Makefile
--- a/sbin/ping/Makefile        Sat Nov 09 21:38:57 2013 +0000
+++ b/sbin/ping/Makefile        Sat Nov 09 21:39:27 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.16 2010/12/13 17:42:17 pooka Exp $
+#      $NetBSD: Makefile,v 1.17 2013/11/09 21:39:27 christos Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/5/93
 
 USE_FORT?= yes # setuid
@@ -12,4 +12,8 @@
 LDADD+= -lipsec
 DPADD+= ${LIBIPSEC}
 
+.if ${MACHINE_ARCH} == "vax"
+COPTS.ping.c=-O0
+.endif
+
 .include <bsd.prog.mk>
diff -r 01429c4064db -r 5bf8b32344f7 usr.sbin/lmcconfig/Makefile
--- a/usr.sbin/lmcconfig/Makefile       Sat Nov 09 21:38:57 2013 +0000
+++ b/usr.sbin/lmcconfig/Makefile       Sat Nov 09 21:39:27 2013 +0000
@@ -1,6 +1,13 @@
-#      $NetBSD: Makefile,v 1.1 2005/12/06 03:12:35 christos Exp $
+#      $NetBSD: Makefile,v 1.2 2013/11/09 21:39:28 christos Exp $
+
+.include <bsd.own.mk>
 
 PROG=  lmcconfig
 MAN=   lmcconfig.8
 CPPFLAGS+=-I${NETBSDSRCDIR}/sys/dev/pci
+
+.if ${MACHINE_ARCH} == "vax"
+COPTS.lmcconfig.c=-O0
+.endif
+
 .include <bsd.prog.mk>
diff -r 01429c4064db -r 5bf8b32344f7 usr.sbin/mtrace/Makefile
--- a/usr.sbin/mtrace/Makefile  Sat Nov 09 21:38:57 2013 +0000
+++ b/usr.sbin/mtrace/Makefile  Sat Nov 09 21:39:27 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.10 2007/05/28 12:06:38 tls Exp $
+#      $NetBSD: Makefile,v 1.11 2013/11/09 21:39:28 christos Exp $
 #      from: Id: Makefile,v 1.5 1993/06/24 05:11:16 deering Exp
 
 .include <bsd.own.mk>
@@ -12,6 +12,10 @@
 SRCS=  igmp.c inet.c kern.c mtrace.c
 MAN=   mtrace.8
 
+.if ${MACHINE_ARCH} == "vax"
+COPTS.mtrace.c=-O0
+.endif
+
 BINMODE=4555
 BINOWN= root
 



Home | Main Index | Thread Index | Old Index