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

Wols Lists antlists at youngman.org.uk
Thu Nov 18 03:29:56 PST 2010


On 17/11/10 18:50, 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. Don't see the point of using
> optimizations when building a version for debugging purposes. 
What if it's the optimisation that introduces the bug? Completely
different product (MS VB :-) but I know of a very nasty bug that only
crops up in compiled mode - you prove the code is correct in interpreted
mode, compile it, and the executable fails ...

Cheers,
Wol


More information about the LibreOffice mailing list