Module Name: src Committed By: pooka Date: Tue Mar 5 21:16:24 UTC 2013
Modified Files: src/share/mk: bsd.lib.mk Log Message: Make "make DBG=-g -O2" for a library once again produce a shared library with debugging symbols (irregardless of .debug). To generate a diff of this commit: cvs rdiff -u -r1.331 -r1.332 src/share/mk/bsd.lib.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.lib.mk diff -u src/share/mk/bsd.lib.mk:1.331 src/share/mk/bsd.lib.mk:1.332 --- src/share/mk/bsd.lib.mk:1.331 Wed Feb 13 08:00:47 2013 +++ src/share/mk/bsd.lib.mk Tue Mar 5 21:16:24 2013 @@ -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 @@ CFLAGS+= ${PIE_CFLAGS} 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