
On 11/11/16 10:52 PM, Jan von Löwenstein wrote:
I have a Mac OS X workstation and want to compile a cli for Linux (and potentially Windows) in addition to OS X.
I could not find anything but https://ghc.haskell.org/trac/ghc/wiki/CrossCompilation. This has an explanation how I can build a cross compiling GHC for a specific combination of build and target system/architecture. Stack has an open issue regarding cross compilation.
Is that really all there is out there?
I documented my cross-compilation adventure here: https://wiki.haskell.org/OpenWRT However, in my opinion, cross-compilation is one of the areas where ghc and its ecosystem are the weakest. You'll probably be much happier if you find a Linux box or install virtualization software on your Mac. --Patrick