Make ctfconvert remove the debugging symbols after it is done converting them.

This commit is contained in:
christos 2016-01-30 04:07:27 +00:00
parent 7ce9f672f2
commit e1356d5e2a
1 changed files with 8 additions and 6 deletions

View File

@ -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 :}