Re: [Haskell-cafe] libffi mystery

2010-10-29 Thread Conor McBride
Hi Thanks for the help! I've made some progress, but I'm not there yet. On 28 Oct 2010, at 20:08, Ketil Malde wrote: Sittampalam, Ganesh ganesh.sittampa...@credit-suisse.com writes: Have you tried passing -optl-static to ghc (which causes -static to be passed to ld)? This was new to me.

Re: [Haskell-cafe] libffi mystery

2010-10-29 Thread Ketil Malde
Conor McBride co...@strictlypositive.org writes: ...seemed like a good plan. I got lots of scary warnings like (.text+0x51d8): warning: Using 'setprotoent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking I guess the message

RE: [Haskell-cafe] libffi mystery

2010-10-28 Thread Sittampalam, Ganesh
Conor McBride wrote: Is there some way I can get some more static linking to happen? I did poke about online a bit and found some remarks to the effect that GHC got so much more portable after switching to the dynamic libffi. That sounds great, but tough luck for me. So, being both

Re: [Haskell-cafe] libffi mystery

2010-10-28 Thread Ketil Malde
Sittampalam, Ganesh ganesh.sittampa...@credit-suisse.com writes: Have you tried passing -optl-static to ghc (which causes -static to be passed to ld)? It used to be: -optl-static -optl-pthread But it doesn't seem to work anymore on my install. % ./a.out a.out: