[Libreoffice] Disable GCC optimizations when building with --enable-symbols
antlists at youngman.org.uk
Thu Nov 18 03:29:56 PST 2010
On 17/11/10 18:50, Santiago Bosio wrote:
> 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 ...
More information about the LibreOffice