[mapserver-dev] --enable-debug and optimization flags

Daniel Morissette 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[123] to -O0 in CFLAGS/CXXFLAGS if --enable-debug was passed to
>> ./configure.
>>
>> 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.
> 
> Thomas,
> 
> 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
-- 
Daniel Morissette
http://www.mapgears.com/


More information about the mapserver-dev mailing list