[mythtv] [PATCH] Mac OS X prebinding
Jeremiah Morris
jm at whpress.com
Wed Oct 20 08:00:07 UTC 2004
Attached is a patch to enable prebinding for Myth on Mac OS X. (For
non-Mac folks, prebinding is a way to speed up the runtime linking of
dynamic libraries.) Currently, prebinding fails because the Myth
libraries' preferred addresses overlap. This patch modifies the
Mac-specific portion of the .pro files so that the linker can
successfully prebind the Myth libraries together.
Note to Mac users: the prebinding will still fail if any dependent
shared libraries are not prebound. In my case, I found that
libfreetype was not prebound. I had to reconfigure and recompile
FreeType, setting the environment variable LDFLAGS to "-no-undefined
-Wl,-prebind,-seg1addr,0xC0000000" before running configure, before
everything worked. The linker will emit a warning message when
building libmythtv and/or mythfrontend if anything's wrong with the
prebinding.
- Jeremiah
P.S. If you've applied my QuickTime patch, you'll probably need to
patch libmythtv.pro manually, since both patches make changes to the
same area of the file. (The patches are mutually exclusive, but the
matching will fail.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: prebinding.diff
Type: application/octet-stream
Size: 2947 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20041020/692a3c76/prebinding.obj
More information about the mythtv-dev
mailing list