<br><div class="gmail_quote">On Mon, Dec 21, 2009 at 2:32 PM, Bulat Ziganshin <span dir="ltr">&lt;<a href="mailto:bulat.ziganshin@gmail.com" target="_blank">bulat.ziganshin@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello glasgow-haskell-users,<br>
<br>
i compile my program for linux using ghc 6.6.1 (32-bit)<br>
<br>
user of my program asks: &quot;any plans of making a static build for<br>
linux? that one does not work under x86-64 due to dependencies,<br>
missing libgmp which it seems is not available under 64bit. i could be<br>
wrong tho.&quot;<br>
<br>
how this may be resolved? should libgmp be available in x64 linux, or<br>
i should change compile options?<br>
<font color="#888888"></font><br></blockquote><div> </div></div>Using cabal, this gets me a completely static executable:<br>
<br>
runhaskell Setup.hs configure --user --ghc-options=&quot;-static -optl-static -optl-pthread&quot;<br><br>
Which implies to me that passing &#39;-static -optl-static -optl-pthread&#39; would do the trick.<br>