Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk If we are building CTF, keep debugging symbols.



details:   https://anonhg.NetBSD.org/src/rev/45d6a5bd3c8f
branches:  trunk
changeset: 343338:45d6a5bd3c8f
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 30 03:38:39 2016 +0000

description:
If we are building CTF, keep debugging symbols.

diffstat:

 share/mk/bsd.kmodule.mk |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 7aa5d3435db0 -r 45d6a5bd3c8f share/mk/bsd.kmodule.mk
--- a/share/mk/bsd.kmodule.mk   Sat Jan 30 02:13:13 2016 +0000
+++ b/share/mk/bsd.kmodule.mk   Sat Jan 30 03:38:39 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.kmodule.mk,v 1.55 2015/07/09 14:50:08 matt Exp $
+#      $NetBSD: bsd.kmodule.mk,v 1.56 2016/01/30 03:38:39 christos Exp $
 
 # We are not building this with PIE
 MKPIE=no
@@ -45,6 +45,11 @@
 LDFLAGS+=      -Wl,-m,elf64ltsmip
 .endif
 
+.if ${MKCTF:Uno} == "yes"
+CFLAGS+=       -g
+#CTFFLAGS+=    -g
+.endif
+
 .if ${MACHINE_CPU} == "sparc64"
 # force same memory model as rest of the kernel
 CFLAGS+=       ${${ACTIVE_CC} == "gcc":? -mcmodel=medlow :}



Home | Main Index | Thread Index | Old Index