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

Thomas Bonfort 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.

best regards,

thomas

www.camptocamp.com
+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[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/
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>


More information about the mapserver-dev mailing list