Source-Changes-HG archive

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

[src/trunk]: src/share/mk When building a module keep symbols if built with "...



details:   https://anonhg.NetBSD.org/src/rev/de1f5f252aa5
branches:  trunk
changeset: 457588:de1f5f252aa5
user:      hannken <hannken%NetBSD.org@localhost>
date:      Fri Jul 05 08:28:16 2019 +0000

description:
When building a module keep symbols if built with "MKCTF" and "COPTS=-g".

diffstat:

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

diffs (21 lines):

diff -r 13f4a45cb2c7 -r de1f5f252aa5 share/mk/bsd.kmodule.mk
--- a/share/mk/bsd.kmodule.mk   Fri Jul 05 06:19:49 2019 +0000
+++ b/share/mk/bsd.kmodule.mk   Fri Jul 05 08:28:16 2019 +0000
@@ -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 @@
 # 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>



Home | Main Index | Thread Index | Old Index