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.
On Thursday, 31 May 2018, Ken Cunningham <ken.cunningham.web...@gmail.com> wrote: > Well, to do that, you would have to change the default configure.optflags > in portconfigure.tcl > > open > > /opt/local/libexec/macports/lib/port1.0/portconfigure.tcl > > and change > > default configure.optflags {-Os} > > to something like > > default configure.optflags {"-O0 -g"} > > perhaps, or whatever works for you. > > Then on a port by port basis you might need to look for Portfiles that > override the configure.optflags and check on them individually. > > Finally, you'd need to set > > buildfromsource always > > > No tickets, please! You're on your own when you go off track like this. > > Ken > > > > On 2018-05-31, at 5:35 PM, Eitan Adler wrote: > > > Is it possible to get debug symbols enabled by default for ports? I'd > > like to always compile c-alike languages with "-g" and not have them > > stripped. > > > > > > -- > > Eitan Adler > > -- Sent from my Turing Machine