Module Name: src Committed By: hannken Date: Fri Jul 5 08:28:16 UTC 2019
Modified Files: src/share/mk: bsd.kmodule.mk Log Message: When building a module keep symbols if built with "MKCTF" and "COPTS=-g". To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62 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.61 src/share/mk/bsd.kmodule.mk:1.62 --- src/share/mk/bsd.kmodule.mk:1.61 Thu May 9 23:34:51 2019 +++ src/share/mk/bsd.kmodule.mk Fri Jul 5 08:28:16 2019 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.kmodule.mk,v 1.61 2019/05/09 23:34:51 maya Exp $ +# $NetBSD: bsd.kmodule.mk,v 1.62 2019/07/05 08:28:16 hannken Exp $ # We are not building this with PIE MKPIE=no @@ -11,6 +11,11 @@ CFLAGS+= -g # Only need symbols for ctf, strip them after converting to CTF CTFFLAGS= -L VERSION CTFMFLAGS= -t -L VERSION +# Keep symbols if built with "-g" +.if !empty(COPTS:M*-g*) +CTFFLAGS+= -g +CTFMFLAGS+= -g +.endif .endif .include <bsd.sys.mk>