Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Now that we have separate debug sets, add -g if ${M...
details: https://anonhg.NetBSD.org/src/rev/048cee27f2e7
branches: trunk
changeset: 784071:048cee27f2e7
user: christos <christos%NetBSD.org@localhost>
date: Thu Jan 17 15:42:59 2013 +0000
description:
Now that we have separate debug sets, add -g if ${MKDEBUG} is set for
program builds since we don't need to install that symbol files.
diffstat:
share/mk/bsd.prog.mk | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r dac8c937559b -r 048cee27f2e7 share/mk/bsd.prog.mk
--- a/share/mk/bsd.prog.mk Thu Jan 17 15:27:50 2013 +0000
+++ b/share/mk/bsd.prog.mk Thu Jan 17 15:42:59 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prog.mk,v 1.278 2012/08/24 20:26:24 jmmv Exp $
+# $NetBSD: bsd.prog.mk,v 1.279 2013/01/17 15:42:59 christos Exp $
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
.ifndef HOSTPROG
@@ -49,6 +49,9 @@
.endif
CFLAGS+= ${COPTS}
+.if defined(MKDEBUG) && (${MKDEBUG} != "no")
+CFLAGS+= -g
+.endif
OBJCFLAGS+= ${OBJCOPTS}
MKDEP_SUFFIXES?= .o .ln
Home |
Main Index |
Thread Index |
Old Index