[mythtv] Mixed debug/release build

Michael Haas laga+mythtv at laga.ath.cx
Fri Aug 24 22:14:55 UTC 2007


Hi,

most ready-made MythTV packages are compiled with
--compile-type=release. While this is great for the vast majority of
users, it's impossible to debug segfaults properly with these packages
because debug symbols are stripped. Even if dbg symbols were present,
gcc optimizations would render backtraces generated from them useless.

On the other hand, packages created using --compile-type=debug are
slower which makes them unsuitable for environment which lack CPU
ressources or where HDTV is to be displayed.

It was suggested to me in #mythtv that only certain performance-critical
parts of MythTV should be optimized while other parts remain fully
debugable. I have created a small patch which adds --compile-type=apport
[1]. With this patch, libavcodec, libavutil, filters, libmythmpeg2,
libmythsamplerate and libmythsoundtouch are compiled with -O3. Janne
suggested that libs/libmythtv/RTjpegN.cpp should be optimized as well,
but I have yet to figure out how to do that.


Anyways, this email is getting way too long. Patch is attached, let me
know what you think.










[1] Apport is a tool for "Automatic crash reports" in Ubuntu. The new
compile type is named like that because of historic reasons...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: compile-type-apport.diff
Type: text/x-patch
Size: 4844 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20070825/b052def5/attachment.bin 


More information about the mythtv-dev mailing list