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

Frank Warmerdam warmerdam at pobox.com
Sat Jun 27 09:15:31 EDT 2009

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.


I would be supportive of this change, though I would be inclined to just
filter out the -O flag completely.

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the mapserver-dev mailing list