Thanks for the responses.

I guess I will "cross compile" via vm/docker then.
Glad that I am running on Mac, the other direction would be more difficult I suppose.

Regards
Jan


Brandon Allbery <allbery.b@gmail.com> schrieb am Sa., 12. Nov. 2016 19:05:
On Sat, Nov 12, 2016 at 1:52 AM, Jan von Löwenstein <jan.loewenstein@gmail.com> wrote:
I have a Mac OS X workstation and want to compile a cli for Linux (and potentially Windows) in addition to OS X. 
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? 

Cross-compilation pretty much only exists for porting ghc itself at this point. There are some hacks involving llvm that are used for ARM cross-compiling.


--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net