Subject: Re: To strip or not to strip
To: None <tech-pkg@netbsd.org>
From: Eric d'Alibut <eric.halibut@gmail.com>
List: tech-pkg
Date: 02/09/2005 14:34:24
On Wed, 09 Feb 2005 03:31:11 +0100, Matthias Buelow <mkb@incubus.de> wrote:

> It would really be nice if these options were documented.. I found
> INSTALL_UNSTRIPPED neither in the manpage, nor on pkgsrc/doc, nor in the
> documentation of www.pkgsrc.org (although I haven't searched the latter
> exhaustively).

I found it here: /usr/pkgsrc/mk/platform/NetBSD.mk

Reading this file reveals:

.if (!defined(INSTALL_UNSTRIPPED) || empty(INSTALL_UNSTRIPPED:M[yY][eE][sS])) &&
 !defined(DEBUG_FLAGS)
_STRIPFLAG_CC?=         -s      # cc(1) option to strip
_STRIPFLAG_INSTALL?=    -s      # install(1) option to strip
.endif

So I am now experimenting with these lines in /etc/mk.conf:

COPTS+=-g
INSTALL_UNSTRIPPED=yes
_STRIPFLAG_INSTALL?=--only-keep-debug

in my attempt to produce a "gdb-debuggable" executable for a given
pkgsrc package.

Comments, excoriation, retribution, praise, condemnation, etc., will
be gratefully received. <g>

Best &c.,

-- 
No no no, my fish's name is Eric, Eric the fish. He's an halibut. I am
not a looney! Why should I be tarred with the epithet looney merely
because I have a pet halibut?