
15 May
2004
15 May
'04
3:27 p.m.
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