Source-Changes-HG archive

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

[src/trunk]: src/share/mk Make "make DBG=-g -O2" for a library once again pro...



details:   https://anonhg.NetBSD.org/src/rev/f1be1d4cba55
branches:  trunk
changeset: 785242:f1be1d4cba55
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Mar 05 21:16:24 2013 +0000

description:
Make "make DBG=-g -O2" for a library once again produce a shared library
with debugging symbols (irregardless of .debug).

diffstat:

 share/mk/bsd.lib.mk |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r a307ef70dac8 -r f1be1d4cba55 share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk       Tue Mar 05 19:58:33 2013 +0000
+++ b/share/mk/bsd.lib.mk       Tue Mar 05 21:16:24 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.lib.mk,v 1.331 2013/02/13 08:00:47 nakayama Exp $
+#      $NetBSD: bsd.lib.mk,v 1.332 2013/03/05 21:16:24 pooka Exp $
 #      @(#)bsd.lib.mk  8.3 (Berkeley) 4/22/94
 
 .include <bsd.init.mk>
@@ -47,7 +47,8 @@
 AFLAGS+=        ${PIE_AFLAGS}
 .endif
 
-.if defined(MKDEBUG) && (${MKDEBUG} != "no")
+.if (defined(MKDEBUG) && (${MKDEBUG} != "no")) || \
+    (defined(CFLAGS) && !empty(CFLAGS:M*-g*))
 # We only add -g to the shared library objects
 # because we don't currently split .a archives.
 CSHLIBFLAGS+=  -g



Home | Main Index | Thread Index | Old Index