Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Add NODEBUG
details: https://anonhg.NetBSD.org/src/rev/2b0be161d453
branches: trunk
changeset: 343696:2b0be161d453
user: christos <christos%NetBSD.org@localhost>
date: Sun Feb 21 03:34:27 2016 +0000
description:
Add NODEBUG
diffstat:
share/mk/bsd.README | 5 ++++-
share/mk/bsd.lib.mk | 6 +++---
share/mk/bsd.prog.mk | 6 +++---
3 files changed, 10 insertions(+), 7 deletions(-)
diffs (73 lines):
diff -r a4e2146b6fee -r 2b0be161d453 share/mk/bsd.README
--- a/share/mk/bsd.README Sun Feb 21 03:33:18 2016 +0000
+++ b/share/mk/bsd.README Sun Feb 21 03:34:27 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.README,v 1.351 2016/02/20 15:18:46 christos Exp $
+# $NetBSD: bsd.README,v 1.352 2016/02/21 03:34:27 christos Exp $
# @(#)bsd.README 8.2 (Berkeley) 4/2/94
This is the README file for the make "include" files for the NetBSD
@@ -169,6 +169,9 @@
into /usr/libdata/debug.
Default: no
+NODEBUG Don't compile with debugging symbols during build.
+ It is set internally for standalone programs.
+
MKDEBUGLIB Build *_g.a debugging libraries, which are compiled
with -DDEBUG.
Default: no
diff -r a4e2146b6fee -r 2b0be161d453 share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk Sun Feb 21 03:33:18 2016 +0000
+++ b/share/mk/bsd.lib.mk Sun Feb 21 03:34:27 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.lib.mk,v 1.363 2016/01/31 15:30:14 christos Exp $
+# $NetBSD: bsd.lib.mk,v 1.364 2016/02/21 03:34:27 christos Exp $
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
.include <bsd.init.mk>
@@ -156,7 +156,7 @@
MKSHLIBOBJS= no
.endif
-.if (defined(MKDEBUG) && (${MKDEBUG} != "no")) || \
+.if (${MKDEBUG:Uno} != "no" && !defined(NODEBUG)) || \
(defined(CFLAGS) && !empty(CFLAGS:M*-g*))
# We only add -g to the shared library objects
# because we don't currently split .a archives.
@@ -407,7 +407,7 @@
_LIB.so.major:=${_LIB}.so.${SHLIB_MAJOR}
_LIB.so.full:=${_LIB}.so.${SHLIB_FULLVERSION}
_LIB.so.link:=${_LIB}.so.${SHLIB_FULLVERSION}.link
-.if ${MKDEBUG} != "no"
+.if ${MKDEBUG:Uno} != "no" && !defined(NODEBUG)
_LIB.so.debug:=${_LIB.so.full}.debug
.endif
.endif
diff -r a4e2146b6fee -r 2b0be161d453 share/mk/bsd.prog.mk
--- a/share/mk/bsd.prog.mk Sun Feb 21 03:33:18 2016 +0000
+++ b/share/mk/bsd.prog.mk Sun Feb 21 03:34:27 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prog.mk,v 1.295 2016/01/31 15:30:14 christos Exp $
+# $NetBSD: bsd.prog.mk,v 1.296 2016/02/21 03:34:27 christos Exp $
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
.ifndef HOSTPROG
@@ -55,7 +55,7 @@
.endif
CFLAGS+= ${COPTS}
-.if defined(MKDEBUG) && (${MKDEBUG} != "no")
+.if ${MKDEBUG:Uno} != "no" && !defined(NODEBUG)
CFLAGS+= -g
.endif
OBJCFLAGS+= ${OBJCOPTS}
@@ -434,7 +434,7 @@
BINDIR.${_P}?= ${BINDIR}
PROGNAME.${_P}?= ${_P}
-.if ${MKDEBUG} != "no" && !commands(${_P})
+.if ${MKDEBUG:Uno} != "no" && !defined(NODEBUG) && !commands(${_P})
_PROGDEBUG.${_P}:= ${PROGNAME.${_P}}.debug
.endif
Home |
Main Index |
Thread Index |
Old Index