Subject: bin/20579: binaries in /usr/X11R6/bin should be stripped
To: None <>
From: None <>
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
>Originator:     Igor Sobrado
>Release:        1.6
University of Oviedo
NetBSD ns1.localnet 1.6 NetBSD 1.6 (GENERIC) #0: Sun Sep  8 19:43:40 UTC 2002 i386

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

The most easy way to repeat this problem is using file(1):

$ file /usr/X11R6/bin/*

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!