[Haskell-cafe] GHC and libc

Duncan Coutts duncan.coutts at worcester.oxford.ac.uk
Sat May 15 17:27:39 EDT 2004


On Sat, 2004-05-15 at 16:08, Per Larsson wrote:
> When I compile my haskell program (on a linux machine) with GHC and send it to 
> a colleague he can't run it because he has a somewhat older version of libc. 
> Is there a GHC switch that I have missed that enables you to statically link 
> the parts of libc that is used by the haskell program?

On linux, just give ghc the switch "-optl-static" which passes "-static"
to the linker.

That will link statically with all libs, not just libc.

Duncan



More information about the Haskell-Cafe mailing list