On Mon, Dec 21, 2009 at 2:49 PM, Robert Greayer <[email protected]>wrote:

>
> On Mon, Dec 21, 2009 at 2:32 PM, Bulat Ziganshin <
> [email protected]> 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.
>

(With the caveat: this works with 6.10... not sure at all about 6.6).
_______________________________________________
Glasgow-haskell-users mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to