statically linking

Bjorn Bringert bjorn at bringert.net
Sun Feb 17 10:17:28 EST 2008


On Feb 17, 2008 3:32 PM, Martina Seidl <seidl at big.tuwien.ac.at> wrote:
> Hallo,
>
> I urgently need a statically linked binary (ELF 32) of a Haskell program I
> have written and I could not figure out yet how to achieve this.
>
> Could anyone give me a hint please?
>
> Best regards,
> Martina

Hi Martina,

Adding

-static -optl-static

to your ghc command line normally does it.

-- 
/Björn


More information about the Glasgow-haskell-users mailing list