If we are compiling with -g and using gcc4.8 and dtrace downgrade
dwarf generation to version 2 for now.
This commit is contained in:
parent
bcb71d7e8b
commit
aca5beab65
@ -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 @@ FFLAGS+= ${FOPTS}
|
||||
.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
|
||||
|
||||
|
@ -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 @@ MKDEP_SUFFIXES?= .o .ln
|
||||
.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
|
||||
|
Loading…
Reference in New Issue
Block a user