<p dir="ltr">Thanks for the responses. </p>
<p dir="ltr">I guess I will "cross compile" via vm/docker then. <br>
Glad that I am running on Mac, the other direction would be more difficult I suppose. </p>
<p dir="ltr">Regards <br>
Jan </p>
<br><div class="gmail_quote"><div dir="ltr">Brandon Allbery <<a href="mailto:allbery.b@gmail.com">allbery.b@gmail.com</a>> schrieb am Sa., 12. Nov. 2016 19:05:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg">On Sat, Nov 12, 2016 at 1:52 AM, Jan von Löwenstein <span dir="ltr" class="gmail_msg"><<a href="mailto:jan.loewenstein@gmail.com" class="gmail_msg" target="_blank">jan.loewenstein@gmail.com</a>></span> wrote:<br class="gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_-7301234394815006498m_7378896201106266714gmail_msg gmail_msg">I have a Mac OS X workstation and want to compile a cli for Linux (and potentially Windows) in addition to OS X. <div dir="auto" class="m_-7301234394815006498m_7378896201106266714gmail_msg gmail_msg">I could not find anything but <a href="https://ghc.haskell.org/trac/ghc/wiki/CrossCompilation" class="gmail_msg" target="_blank">https://ghc.haskell.org/trac/ghc/wiki/CrossCompilation</a>. </div><div dir="auto" class="m_-7301234394815006498m_7378896201106266714gmail_msg 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="m_-7301234394815006498m_7378896201106266714gmail_msg gmail_msg"><span style="font-size:13px" class="gmail_msg">Stack has an open issue regarding cross compilation.</span></div><div dir="auto" class="m_-7301234394815006498m_7378896201106266714gmail_msg gmail_msg"><br class="gmail_msg"></div><div dir="auto" class="m_-7301234394815006498m_7378896201106266714gmail_msg gmail_msg">Is that really all there is out there? </div></div></blockquote></div><br class="gmail_msg"></div></div><div dir="ltr" class="gmail_msg"><div class="gmail_extra gmail_msg">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.</div></div><div dir="ltr" class="gmail_msg"><div class="gmail_extra gmail_msg"><br clear="all" class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div>-- <br class="gmail_msg"><div class="m_-7301234394815006498gmail_signature gmail_msg" data-smartmail="gmail_signature"><div dir="ltr" class="gmail_msg"><div class="gmail_msg">brandon s allbery kf8nh                               sine nomine associates</div><div class="gmail_msg"><a href="mailto:allbery.b@gmail.com" class="gmail_msg" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" class="gmail_msg" target="_blank">ballbery@sinenomine.net</a></div><div class="gmail_msg">unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" class="gmail_msg" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div></blockquote></div>