Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Make the libfoo.so.X.Y.debug files actually contain...
details: https://anonhg.NetBSD.org/src/rev/93b147727a34
branches: trunk
changeset: 784233:93b147727a34
user: christos <christos%NetBSD.org@localhost>
date: Tue Jan 22 20:43:17 2013 +0000
description:
Make the libfoo.so.X.Y.debug files actually contain debug symbols if MKDEBUG.
diffstat:
share/mk/bsd.lib.mk | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (40 lines):
diff -r 26d6c21e3eb6 -r 93b147727a34 share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk Tue Jan 22 20:35:29 2013 +0000
+++ b/share/mk/bsd.lib.mk Tue Jan 22 20:43:17 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.lib.mk,v 1.325 2012/11/13 22:30:38 pooka Exp $
+# $NetBSD: bsd.lib.mk,v 1.326 2013/01/22 20:43:17 christos Exp $
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
.include <bsd.init.mk>
@@ -47,6 +47,12 @@
AFLAGS+= ${PIE_AFLAGS}
.endif
+.if defined(MKDEBUG) && (${MKDEBUG} != "no")
+# We only add -g to the shared library objects
+# because we don't currently split .a archives.
+CSHLIBFLAGS+= -g
+.endif
+
##### Libraries that this may depend upon.
.if defined(LIBDPLIBS) && ${MKPIC} != "no" # {
.for _lib _dir in ${LIBDPLIBS}
@@ -238,7 +244,7 @@
.c.pico:
${_MKTARGET_COMPILE}
${COMPILE.c} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${CSHLIBFLAGS} ${.IMPSRC} -o ${.TARGET}
-.if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
+.if !defined(CSHLIBFLAGS) || empty(CSHLIBFLAGS:M*-g*)
${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}
.endif
@@ -263,7 +269,7 @@
.cc.pico .cpp.pico .cxx.pico .C.pico:
${_MKTARGET_COMPILE}
${COMPILE.cc} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${CSHLIBFLAGS} ${.IMPSRC} -o ${.TARGET}
-.if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
+.if !defined(CSHLIBFLAGS) || empty(CSHLIBFLAGS:M*-g*)
${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}
.endif
Home |
Main Index |
Thread Index |
Old Index