Module Name:    src
Committed By:   christos
Date:           Thu Jan 17 15:42:59 UTC 2013

Modified Files:
        src/share/mk: bsd.prog.mk

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.278 -r1.279 src/share/mk/bsd.prog.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.prog.mk
diff -u src/share/mk/bsd.prog.mk:1.278 src/share/mk/bsd.prog.mk:1.279
--- src/share/mk/bsd.prog.mk:1.278	Fri Aug 24 16:26:24 2012
+++ src/share/mk/bsd.prog.mk	Thu Jan 17 10:42:59 2013
@@ -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 @@ LDFLAGS+=	${PIE_LDFLAGS}
 .endif
 
 CFLAGS+=	${COPTS}
+.if defined(MKDEBUG) && (${MKDEBUG} != "no")
+CFLAGS+=	-g
+.endif
 OBJCFLAGS+=	${OBJCOPTS}
 MKDEP_SUFFIXES?=	.o .ln
 

Reply via email to