On Mon, Dec 21, 2009 at 2:32 PM, Bulat Ziganshin <bulat.ziganshin@gmail.com> wrote:
Hello glasgow-haskell-users,

i compile my program for linux using ghc 6.6.1 (32-bit)

user of my program asks: "any plans of making a static build for
linux? that one does not work under x86-64 due to dependencies,
missing libgmp which it seems is not available under 64bit. i could be
wrong tho."

how this may be resolved? should libgmp be available in x64 linux, or
i should change compile options?

 
Using cabal, this gets me a completely static executable:

runhaskell Setup.hs configure --user --ghc-options="-static -optl-static -optl-pthread"

Which implies to me that passing '-static -optl-static -optl-pthread' would do the trick.