From owner-freebsd-questions@FreeBSD.ORG Fri Mar 19 20:04:50 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB391106564A for ; Fri, 19 Mar 2010 20:04:50 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id 87C678FC1B for ; Fri, 19 Mar 2010 20:04:50 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1NsiQn-00034J-K3; Fri, 19 Mar 2010 16:04:34 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id BA8253D1E8A8; Fri, 19 Mar 2010 16:04:29 -0400 (EDT) Message-ID: <4BA3D8CF.3070803@FreeBSD.org> Date: Fri, 19 Mar 2010 16:04:31 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Alejandro Imass References: In-Reply-To: X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.1 (/) Cc: freebsd-questions@freebsd.org Subject: Re: Debugging symbols in ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2010 20:04:50 -0000 -----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-----