From owner-freebsd-bugs Tue Nov 19 09:10:09 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA17517 for bugs-outgoing; Tue, 19 Nov 1996 09:10:09 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA17510; Tue, 19 Nov 1996 09:10:06 -0800 (PST) Resent-Date: Tue, 19 Nov 1996 09:10:06 -0800 (PST) Resent-Message-Id: <199611191710.JAA17510@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, wollman@khavrinen.lcs.mit.edu 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 ; 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" Reply-To: wollman@khavrinen.lcs.mit.edu To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/2061: DEBUG_FLAGS in bsd.lib.mk is broken Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2061 >Category: bin >Synopsis: DEBUG_FLAGS in bsd.lib.mk is broken >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Nov 19 09:10:02 PST 1996 >Last-Modified: >Originator: Garrett Wollman >Organization: MIT Laboratory for Computer Science >Release: FreeBSD 2.2-CURRENT i386 >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. >Audit-Trail: >Unformatted: Garrett A. Wollman