Subject: bin/20579: binaries in /usr/X11R6/bin should be stripped
To: None <gnats-bugs@gnats.netbsd.org>
From: None <sobrado@acm.org>
List: netbsd-bugs
Date: 03/04/2003 12:03:10
>Number:         20579
>Category:       bin
>Synopsis:       binaries in /usr/X11R6/bin should be stripped
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 04 12:04:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Igor Sobrado
>Release:        1.6
>Organization:
University of Oviedo
>Environment:
NetBSD ns1.localnet 1.6 NetBSD 1.6 (GENERIC) #0: Sun Sep  8 19:43:40 UTC 2002
     autobuild@tgm.daemon.org:/autobuild/i386/OBJ/autobuild/src/sys/arch/i386/compile/GENERIC i386

>Description:
Binaries in /usr/X11R6/bin should be stripped.  There is no reason
for preserving debugging information in production binaries.

>How-To-Repeat:
The most easy way to repeat this problem is using file(1):

$ file /usr/X11R6/bin/*

>Fix:
Linking those binaries with the "-s" option to omit all symbol
information from the output file.  The most clean way to do it
is adding "-s" to LDFLAGS in the makefiles and, of course,
removing "-g" in CFLAGS if set!

>Release-Note:
>Audit-Trail:
>Unformatted: