Module Name: src
Committed By: christos
Date: Sat Jan 30 03:38:39 UTC 2016
Modified Files:
src/share/mk: bsd.kmodule.mk
Log Message:
If we are building CTF, keep debugging symbols.
To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/share/mk/bsd.kmodule.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.kmodule.mk
diff -u src/share/mk/bsd.kmodule.mk:1.55 src/share/mk/bsd.kmodule.mk:1.56
--- src/share/mk/bsd.kmodule.mk:1.55 Thu Jul 9 10:50:08 2015
+++ src/share/mk/bsd.kmodule.mk Fri Jan 29 22:38:39 2016
@@ -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 @@ CFLAGS+= -mabi=64
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 :}