Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk If we are compiling with -g and using gcc4.8 and dt...
details: https://anonhg.NetBSD.org/src/rev/b060b0d1cf96
branches: trunk
changeset: 327243:b060b0d1cf96
user: christos <christos%NetBSD.org@localhost>
date: Sun Mar 02 22:22:05 2014 +0000
description:
If we are compiling with -g and using gcc4.8 and dtrace downgrade
dwarf generation to version 2 for now.
diffstat:
share/mk/bsd.lib.mk | 5 ++++-
share/mk/bsd.prog.mk | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r 2a8ea3700d75 -r b060b0d1cf96 share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk Sun Mar 02 20:13:12 2014 +0000
+++ b/share/mk/bsd.lib.mk Sun Mar 02 22:22:05 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.lib.mk,v 1.346 2014/02/26 02:51:02 mrg Exp $
+# $NetBSD: bsd.lib.mk,v 1.347 2014/03/02 22:22:05 christos Exp $
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
.include <bsd.init.mk>
@@ -185,6 +185,9 @@
.if defined(CTFCONVERT)
.if defined(CFLAGS) && !empty(CFLAGS:M*-g*)
CTFFLAGS+= -g
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 48
+CFLAGS+= -gdwarf-2
+.endif
.endif
.endif
diff -r 2a8ea3700d75 -r b060b0d1cf96 share/mk/bsd.prog.mk
--- a/share/mk/bsd.prog.mk Sun Mar 02 20:13:12 2014 +0000
+++ b/share/mk/bsd.prog.mk Sun Mar 02 22:22:05 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prog.mk,v 1.287 2014/01/15 13:59:38 joerg Exp $
+# $NetBSD: bsd.prog.mk,v 1.288 2014/03/02 22:22:05 christos Exp $
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
.ifndef HOSTPROG
@@ -65,6 +65,9 @@
.if defined(MKDTRACE) && (${MKDTRACE} != "no") && (${CFLAGS:M-g} != "")
CTFFLAGS+= -g
CTFMFLAGS+= -g
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 48
+CFLAGS+=-gdwarf-2
+.endif
.endif
# ELF platforms depend on crti.o, crtbegin.o, crtend.o, and crtn.o
Home |
Main Index |
Thread Index |
Old Index