<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 11/11/16 10:52 PM, Jan von Löwenstein wrote:<br>
<blockquote
cite="mid:CAJtP4w5u=kZ3xM+GRdroTsYZ5-PpH-WxDV9aJHcv98KjNBNqsg@mail.gmail.com"
type="cite">I have a Mac OS X workstation and want to compile a
cli for Linux (and potentially Windows) in addition to OS X. <br
class="gmail_msg">
<div class="gmail_msg">
<div dir="auto" class="gmail_msg"><br class="gmail_msg">
</div>
<div dir="auto" class="gmail_msg">I could not find anything but <a
moz-do-not-send="true"
href="https://ghc.haskell.org/trac/ghc/wiki/CrossCompilation">https://ghc.haskell.org/trac/ghc/wiki/CrossCompilation</a>. </div>
<div dir="auto" class="gmail_msg">This has an explanation how I
can build a cross compiling GHC for a specific combination of
build and target system/architecture. </div>
<div dir="auto" class="gmail_msg"><span style="font-size:13px">Stack
has an open issue regarding cross compilation.</span></div>
<div dir="auto" class="gmail_msg"><br>
</div>
<div dir="auto" class="gmail_msg">Is that really all there is
out there? <br>
</div>
</div>
</blockquote>
<br>
I documented my cross-compilation adventure here:<br>
<br>
<a class="moz-txt-link-freetext" href="https://wiki.haskell.org/OpenWRT">https://wiki.haskell.org/OpenWRT</a><br>
<br>
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.<br>
<br>
--Patrick<br>
<br>
</body>
</html>