On 04/19/2012 12:56 PM, Sean Farley wrote:
It's one thing for a distro to provide symbols by default, but if you want a
package to be compiled with -O0 -g, then you're always looking at doing your
own recompile.  So I guess one would need to edit the Portfile to change the
optimization flags.

So, if I understand correctly, split the .dSYM generation into
macports.conf (no variant required) then have a variant for building
-O0 -g? That sounds fine to me.

Will gdb look in lib/debug automatically for the symbols? All the
projects I've seen that use .dSYM have them side-by-side with the
.dylibs (or .so).

gdb's configure has a --with-separate-debug-dir option.

On Fedora, they set use --with-separate-debug-dir=/usr/lib/debug and then symbols go into the corresponding directory, so for /usr/bin/python2.6, symbols are in /usr/lib/debug/usr/bin/python2.6.debug .

I don't know if this works on OS X.

Blair
_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to