Statically linked binary?

Simon Marlow simonmar at
Fri May 21 15:40:44 EDT 2004

On 21 May 2004 14:17, Jochen L. Leidner wrote:

> sorry for an urgent newbie question: how can I create a statically
> compiled version of a Haskell program on Linux with GHC that does not
> rely on external shared libs (also for any of its libraries it uses)?
> I would like to build a binary that works on a 3-processor machine
> with an older Linux SMP kernel as well as RH9/FC2.

The GHC flag '-optl-static' is your friend.  Note that it is still
possible to end up with a binary that is kernel-version-dependent.


More information about the Glasgow-haskell-users mailing list