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 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
Per Larsson wrote:
[...] 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? [...]
Passing -static to the GNU linker results in a, well, statically linked program.
:-)
Using -optl -static with GHC does what you want,
Thanks Duncan and Sven for your helpful answers.
Per Larsson
P.S Now everything seems to work, except that I get the compiler message:
/usr/local/lib/ghc-6.2/libHSunix.a(User__17.o)(.text+0x160): In function
'SystemziPosixziUser_getUserEntryForName_entry':
: Using 'getpwnam_r' in
We have all the machinery available. See:
http://www.cs.uu.nl/groups/ST/Center/SyntaxMacros
It will be part of the UtrechtHaskellCompiler (UHC), that is being
constructed with our toolset, and which recently strated to produce
running code. You get the syntax macros almost for free if you build