hipl-core team mailing list archive
Mailing list archive
[Bug 626719] Re: Optimizations not disabled (-O0) when enabling debug flags (-g)
autotools set the CFLAGS to "-O2 -g" by default if it finds gcc and your
system environment does not specify this variable. Your comment #2
references exactly the right way how to set more specific CFLAGS.
Passing CFLAGS directly is much more flexible than implementing all
possibly required combinations of the available options in configure.ac.
--enable-debug simply enable HIP_DEBUG, whereas --enable-performance
enables measuring and logging of HIPL performance. Neither should be
Optimizations not disabled (-O0) when enabling debug flags (-g)
You received this bug notification because you are a member of HIPL core
team, which is subscribed to HIPL.
Status in Host Identity Protocol for Linux: New
I don't think there's a point in setting -g without also setting -O0 (and preventing -O2 from superseding it), but that's the case right now. If --enable-debug is desired solely for verbose output, maybe it should be split into another option?