[mapserver-dev] --enable-debug and optimization flags
thomas.bonfort at camptocamp.com
Sun Jun 28 10:02:15 EDT 2009
committed, by removing the -O completely if debugging is asked for.
Daniel, the default for gcc is to completely disable optimization if
no -O flag is passed.
+33 4 79 26 57 97
On Sat, Jun 27, 2009 at 16:03, Daniel
Morissette<dmorissette at mapgears.com> wrote:
> Frank Warmerdam wrote:
>> Thomas Bonfort wrote:
>>> hi devs,
>>> anyone have an objection if I modify the configure script to change
>>> -O to -O0 in CFLAGS/CXXFLAGS if --enable-debug was passed to
>>> the current behavior is to leave it untouched, resulting (on my system
>>> at least) in -O2 to be used by default, which is rather incompatible
>>> with tracing code in a debugger.
>> I would be supportive of this change, though I would be inclined to just
>> filter out the -O flag completely.
> +1 for the change. Doing it either way works for me. I just don't know what
> the default is if -O is not specified.
> Daniel Morissette
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
More information about the mapserver-dev