[Libreoffice] Disable GCC optimizations when building with --enable-symbols

Jesús Corrius jesus at softcatala.org
Wed Nov 17 13:10:42 PST 2010

On Wed, Nov 17, 2010 at 9:16 PM, Caolán McNamara <caolanm at redhat.com> wrote:
> On Wed, 2010-11-17 at 15:50 -0300, Santiago Bosio wrote:
>> Hi!
>> When LibO is built using --enable-symbols, it still uses -O2
>> optimizations, making hard to debug execution with GDB.
>> So, I think that it should default to -O2 on a normal build, and to -O0
>> when using --enable-symbols.
> I'm not a fan of that idea really. I'd prefer to retain the
> --enable-debug option as the one that sets -O0 and leave
> --enable-symbols as -g and not touching the -O2.

Yes, exactly.
We should be able to debug production code the same way it's shipped.

Jesús Corrius <jesus at softcatala.org>
Document Foundation founding member
Skype: jcorrius | Twitter: @jcorrius

More information about the LibreOffice mailing list