Debugging symbols in ports

Greg Larkin glarkin at FreeBSD.org
Fri Mar 19 20:04:50 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alejandro Imass wrote:
> Hi,
> 
> Is there an elegant way to enable debugging symbols in ports in
> general, or is this port-specific? I have read _many_ threads
> regarding this but I can't seem to find a definitive position on this.
> I would not like to resort to the original sources but work from the
> ports themselves.
> 
> Thanks!
> Alejandro Imass

Hi Alejandro,

Try this:

make WITH_DEBUG=yes install clean

WITH_DEBUG adds -g to the CFLAGS and prevents the binary from being
stripped during installation.

Hope that helps,
Greg
- --
Greg Larkin

http://www.FreeBSD.org/           - The Power To Serve
http://www.sourcehosting.net/     - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFLo9jP0sRouByUApARAuTUAJ0X0hp7txxe6J3OAX37kEyow4WeRQCgvFQA
Lz28yinkSFM79WxThqx4d04=
=HAVD
-----END PGP SIGNATURE-----



More information about the freebsd-questions mailing list