Debugging symbols?

Jeremy Huddleston jeremyhu at macports.org
Thu Dec 24 07:51:20 PST 2009


I just use configure.optflags in src/port1.0/portconfigure.tcl:

-default configure.optflags  {-O2}
+default configure.optflags  {-ggdb3 -O0}

We should probably let the optflags be customizable via macports.conf, but this works fine for me.

On Dec 23, 2009, at 23:16, Ryan Schmidt wrote:

> 
> On Dec 23, 2009, at 21:35, J Smith wrote:
> 
>> Apologies if I'm missing something terribly obvious, but is there any
>> way to build a port with debugging symbols enabled for debugging in
>> gdb? I've looked around and haven't found an option, but I may be
>> missing something rather obvious...
> 
> I don't think you're missing anything; I don't recall anybody asking for this before so there isn't anything built into MacPorts to accommodate that.
> 
> How would one build a piece of software with debugging symbols? Is it a configure option? an environment variable? Perhaps it varies by software? Which specific ports were you wanting this for? Some individual ports do offer debugging options, e.g. php5 has a debug variant.
> 
> 
> 
> 
> _______________________________________________
> macports-dev mailing list
> macports-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5820 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20091224/4d6397ab/attachment.bin>


More information about the macports-dev mailing list