Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Nov 1996 12:02:02 -0500 (EST)
From:      "Garrett A. Wollman" <wollman@khavrinen.lcs.mit.edu>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/2061: DEBUG_FLAGS in bsd.lib.mk is broken
Message-ID:  <199611191702.MAA22927@khavrinen.lcs.mit.edu>
Resent-Message-ID: <199611191710.JAA17510@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611191702.MAA22927>