Module Name: src
Committed By: christos
Date: Sat Jan 30 04:07:27 UTC 2016
Modified Files:
src/share/mk: bsd.kmodule.mk
Log Message:
Make ctfconvert remove the debugging symbols after it is done converting them.
To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 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.56 src/share/mk/bsd.kmodule.mk:1.57
--- src/share/mk/bsd.kmodule.mk:1.56 Fri Jan 29 22:38:39 2016
+++ src/share/mk/bsd.kmodule.mk Fri Jan 29 23:07:27 2016
@@ -1,10 +1,17 @@
-# $NetBSD: bsd.kmodule.mk,v 1.56 2016/01/30 03:38:39 christos Exp $
+# $NetBSD: bsd.kmodule.mk,v 1.57 2016/01/30 04:07:27 christos Exp $
# We are not building this with PIE
MKPIE=no
.include <bsd.init.mk>
.include <bsd.klinks.mk>
+
+.if ${MKCTF:Uno} == "yes"
+CFLAGS+= -g
+# Only need symbols for ctf, strip them after converting to CTF
+CTFFLAGS= -L VERSION
+.endif
+
.include <bsd.sys.mk>
##### Basic targets
@@ -45,11 +52,6 @@ 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 :}