pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: compiling for debugging



On Tue, 13 Sep 2011 14:34:25 +0900, Stefan Schaeckeler 
<schaecsn%gmx.net@localhost> wrote:

Hello Obata,

On Tue, 13 Sep 2011 12:55:32 +0900, Stefan Schaeckeler 
<schaecsn%gmx.net@localhost> wrote:

> How can I build a package with debugging symbols (e.g. CLFAGS=-g, not 
stripped)?

Generally, put followings to mk.conf:

CFLAGS+= -g
INSTALL_UNSTRIPPED= yes

But some packages may not honor them.

INSTALL_UNSTRIPPED, that's what what I was looking for. The package under 
consideration (net/nload) doesn't seem to honor it and links with gcc -s. 
Nevermind, I'll link it manually.

You can use followings additionally :)

BUILDLINK_TRANSFORM+=rm:-s

--
OBATA Akio / obache%NetBSD.org@localhost


Home | Main Index | Thread Index | Old Index