From wollman@khavrinen.lcs.mit.edu  Tue Nov 19 09:02:10 1996
Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.26.0.162])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id JAA17046
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 19 Nov 1996 09:02:06 -0800 (PST)
Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.7.6/8.6.6) id MAA22927; Tue, 19 Nov 1996 12:02:02 -0500 (EST)
Message-Id: <199611191702.MAA22927@khavrinen.lcs.mit.edu>
Date: Tue, 19 Nov 1996 12:02:02 -0500 (EST)
From: "Garrett A. Wollman" <wollman@khavrinen.lcs.mit.edu>
Reply-To: wollman@khavrinen.lcs.mit.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: DEBUG_FLAGS in bsd.lib.mk is broken
X-Send-Pr-Version: 3.2

>Number:         2061
>Category:       bin
>Synopsis:       DEBUG_FLAGS in bsd.lib.mk is broken
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 19 09:10:02 PST 1996
>Closed-Date:    Wed Jun 28 02:28:56 PDT 2000
>Last-Modified:  Wed Jun 28 02:29:46 PDT 2000
>Originator:     Garrett Wollman
>Release:        FreeBSD 2.2-CURRENT i386
>Organization:
MIT Laboratory for Computer Science
>Environment:

	Well, it's a really old -current but the problem is still there
	in today's sources....

>Description:

	DEBUG_FLAGS, when defined during the compilation of a library,
	is supposed to allow for generation of libraries with debugging
	symbols in them.  It doesn't.

>How-To-Repeat:

	cd /usr/src/lib/libncurses
	make clean; make DEBUG_FLAGS=-g; make install
	nm -g /usr/lib/libncurses.a
	Notice the absence of debugging symbols.

>Fix:
	
	Put a .if !defined(DEBUG_FLAGS) around the `@$(LD)' command in
	all of the implicit .o-generating rules.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->suspended 
State-Changed-By: phk 
State-Changed-When: Mon May 25 00:58:55 PDT 1998 
State-Changed-Why:  
Awaiting committer 
State-Changed-From-To: suspended->closed 
State-Changed-By: nbm 
State-Changed-When: Wed Jun 28 02:28:56 PDT 2000 
State-Changed-Why:  
Testing indicates that DEBUG_FLAGS does indeed work as expected in later 
releases. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=2061 
>Unformatted:
Garrett A. Wollman
