Source-Changes-HG archive

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

[src/trunk]: src/share/mk Make ctfconvert remove the debugging symbols after ...



details:   https://anonhg.NetBSD.org/src/rev/d19e41d9e156
branches:  trunk
changeset: 343340:d19e41d9e156
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 30 04:07:27 2016 +0000

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

diffstat:

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

diffs (34 lines):

diff -r a470f2d9f3fa -r d19e41d9e156 share/mk/bsd.kmodule.mk
--- a/share/mk/bsd.kmodule.mk   Sat Jan 30 04:02:51 2016 +0000
+++ b/share/mk/bsd.kmodule.mk   Sat Jan 30 04:07:27 2016 +0000
@@ -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 @@
 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 :}



Home | Main Index | Thread Index | Old Index