I’ve been trying to compile some things for x86 OS X. Specifically I’m trying to make XinePlayer a universal application since I think it nicely contains everything that is likely to bite me in the bum (architecture dependant capabilities, heavy process optimisation, old-school Linux source base, autoconf, etc) and indeed my posterior has a number of bite marks upon it.
One gem is the fact that the XCode packaged version of gas is ancient and doesn’t support .balign which nicely screws some of the inline assembly in xine. It also barfs on some of the MMX stuff in ffmpeg but I’ve managed to back-port some stuff from ffmpeg’s HEAD.
Aside from that I’ve been bitten by some actual bugs (confirmed by finding the entries in the GCC bug tracker) and the general crapness of the linker. Also add in the fact that the OS X dynamic libraries include a notion of the path they expect to find themselves in and we find that my build system for PPC XinePlayer was already full of twisty little shell scripts calling otool.
Oh well, I enjoy the challenge :).

