Would it be reasonable to add a supported option to add -g to C flags without changing other things? Even with optimizations having some symbols are better than nothing. <br><br>On Thursday, 31 May 2018, Ken Cunningham <<a href="mailto:ken.cunningham.webuse@gmail.com">ken.cunningham.webuse@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Well, to do that, you would have to change the default configure.optflags in portconfigure.tcl<br>
<br>
open <br>
<br>
/opt/local/libexec/macports/<wbr>lib/port1.0/portconfigure.tcl<br>
<br>
and change <br>
<br>
default configure.optflags      {-Os}<br>
<br>
to something like<br>
<br>
default configure.optflags      {"-O0 -g"}<br>
<br>
perhaps, or whatever works for you.<br>
<br>
Then on a port by port basis you might need to look for Portfiles that override the configure.optflags and check on them individually.<br>
<br>
Finally, you'd need to set<br>
<br>
buildfromsource                 always<br>
<br>
<br>
No tickets, please! You're on your own when you go off track like this.<br>
<br>
Ken<br>
<br>
<br>
<br>
On 2018-05-31, at 5:35 PM, Eitan Adler wrote:<br>
<br>
> Is it possible to get debug symbols enabled by default for ports? I'd<br>
> like to always compile c-alike languages with "-g" and not have them<br>
> stripped.<br>
> <br>
> <br>
> -- <br>
> Eitan Adler<br>
<br>
</blockquote><br><br>-- <br>Sent from my Turing Machine<br>