[mapserver-dev] --enable-debug and optimization flags
dmorissette at mapgears.com
Sat Jun 27 10:03:45 EDT 2009
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.
More information about the mapserver-dev