[Haskell-cafe] GHC and libc

2004-05-15 Thread Per Larsson
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?

Re: [Haskell-cafe] GHC and libc

2004-05-15 Thread Duncan Coutts
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

Re: [Haskell-cafe] GHC and libc

2004-05-15 Thread Sven Panne
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,

Re: [Haskell-cafe] GHC and libc

2004-05-15 Thread Per Larsson
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

[Haskell-cafe] Syntax macros

2004-05-15 Thread Doaitse Swierstra
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