Notes on cross-compiling GHC for a Darwin target.
TL;DR I managed to get most of a stage1 to build. I got a linker failure during ghc-prim,
but most of the libraries had already built successfully, including some C FFI-heavy
packages like bytestring. I suspect my toolchain was just in the wrong spot, and/or libraries
misconfigured.
- We need a normal host GCC toolchain (
build-essential),autoconf,happy,alex, and a platform copy of GHC (the Stage0). - As per the GHC CrossCompiling page on Trac, we need a GCC crosschain. I used
osxcross.