Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/sysinst Make gcc generate better debug info when bu...
details: https://anonhg.NetBSD.org/src/rev/43356e3a54aa
branches: trunk
changeset: 338024:43356e3a54aa
user: martin <martin%NetBSD.org@localhost>
date: Sat May 09 06:15:42 2015 +0000
description:
Make gcc generate better debug info when building with DEBUG set.
diffstat:
usr.sbin/sysinst/Makefile.inc | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r 773d42a58e35 -r 43356e3a54aa usr.sbin/sysinst/Makefile.inc
--- a/usr.sbin/sysinst/Makefile.inc Sat May 09 06:06:14 2015 +0000
+++ b/usr.sbin/sysinst/Makefile.inc Sat May 09 06:15:42 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.5 2014/08/06 12:16:12 martin Exp $
+# $NetBSD: Makefile.inc,v 1.6 2015/05/09 06:15:42 martin Exp $
#
# Makefile for sysinst
@@ -55,7 +55,12 @@
-DCATALOG_DIR=\"${CATALOGDIR}\"
.if (defined(DEBUG))
-CPPFLAGS+=-DDEBUG -g -O0
+.if ${ACTIVE_CC} == "gcc"
+# make gcc run additional passes for better debug info (only needed
+# when compiling with -O0)
+O0TRACKING= -fvar-tracking-assignments -fvar-tracking
+.endif
+CPPFLAGS+=-DDEBUG -g -O0 ${O0TRACKING}
.endif
.if (!defined(SMALLPROG) || defined(SMALLPROG_INET6)) && (${USE_INET6} != "no")
Home |
Main Index |
Thread Index |
Old Index