Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Provide a variable MKTOOLSDEBUG to build debugging ...
details: https://anonhg.NetBSD.org/src/rev/1a2fe003eaa8
branches: trunk
changeset: 343680:1a2fe003eaa8
user: christos <christos%NetBSD.org@localhost>
date: Sat Feb 20 15:18:46 2016 +0000
description:
Provide a variable MKTOOLSDEBUG to build debugging versions of tools.
diffstat:
share/mk/bsd.README | 5 ++++-
share/mk/bsd.host.mk | 12 +++++++++---
2 files changed, 13 insertions(+), 4 deletions(-)
diffs (51 lines):
diff -r 1d93cf9d7081 -r 1a2fe003eaa8 share/mk/bsd.README
--- a/share/mk/bsd.README Sat Feb 20 14:43:59 2016 +0000
+++ b/share/mk/bsd.README Sat Feb 20 15:18:46 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.README,v 1.350 2016/02/07 14:31:21 christos Exp $
+# $NetBSD: bsd.README,v 1.351 2016/02/20 15:18:46 christos Exp $
# @(#)bsd.README 8.2 (Berkeley) 4/2/94
This is the README file for the make "include" files for the NetBSD
@@ -394,6 +394,9 @@
libraries.
Default: yes
+MKTOOLSDEBUG If "yes" build the tools with debugging symbols.
+ Default: no
+
MKTPM If "no" then don't build the Trusted Platform Module
infrastructure.
Default: no
diff -r 1d93cf9d7081 -r 1a2fe003eaa8 share/mk/bsd.host.mk
--- a/share/mk/bsd.host.mk Sat Feb 20 14:43:59 2016 +0000
+++ b/share/mk/bsd.host.mk Sat Feb 20 15:18:46 2016 +0000
@@ -1,11 +1,17 @@
-# $NetBSD: bsd.host.mk,v 1.2 2014/04/10 19:02:18 plunky Exp $
+# $NetBSD: bsd.host.mk,v 1.3 2016/02/20 15:18:46 christos Exp $
.if !defined(_BSD_HOST_MK_)
_BSD_HOST_MK_=1
+.if ${MKTOOLSDEBUG:Uno} == "yes"
+HOST_DBG?= -g
+.else
+HOST_DBG?= -O
+.endif
+
# Helpers for cross-compiling
HOST_CC?= cc
-HOST_CFLAGS?= -O
+HOST_CFLAGS?= ${HOST_DBG}
HOST_COMPILE.c?=${HOST_CC} ${HOST_CFLAGS} ${HOST_CPPFLAGS} -c
HOST_COMPILE.cc?= ${HOST_CXX} ${HOST_CXXFLAGS} ${HOST_CPPFLAGS} -c
HOST_LINK.cc?= ${HOST_CXX} ${HOST_CXXFLAGS} ${HOST_CPPFLAGS} ${HOST_LDFLAGS}
@@ -16,7 +22,7 @@
.endif
HOST_CXX?= c++
-HOST_CXXFLAGS?= -O
+HOST_CXXFLAGS?= ${HOST_DBG}
HOST_CPP?= cpp
HOST_CPPFLAGS?=
Home |
Main Index |
Thread Index |
Old Index