How to build statically linking GHC?

Ian Lynagh ian at
Mon Jun 17 16:25:10 CEST 2013

On Mon, Jun 17, 2013 at 12:12:55PM +0000, Stephen Paul Weber wrote:
> Because I have to find and copy many files and then set up the
> library path env vars when distributing.  Especially since the
> average Haskell project relies on *many* libraries, this gets crazy
> fast.

I'm a little confused. GHC still builds static programs by default.
(well, statically-linked Haskell, dynamically-linked to C libs, like

Ian Lynagh, Haskell Consultant
Well-Typed LLP,

More information about the ghc-devs mailing list