Re: [Haskell-cafe] static linking with ghc?

2012-04-25 Thread Ketil Malde
Johannes Waldmann waldm...@imn.htwk-leipzig.de writes: A similar thing is mentioned here (see Caveat) http://www.haskell.org/haskellwiki/Web/Literature/Static_linking Another caveat is that shared linking isn't very useful on Linux, since the C library loads various stuff dynamically anyway.

Re: [Haskell-cafe] static linking with ghc?

2012-04-22 Thread Scott Lawrence
Adding -optl-pthread fixes it for me. On Sun, 22 Apr 2012, Johannes Waldmann wrote: Hi. I want to produce a statically linked executable. I am trying 'ghc --make -fforce-recomp -static -optl-static Main' but it gives lots of errors like (.text+0xfa): undefined reference to

Re: [Haskell-cafe] static linking with ghc?

2012-04-22 Thread Ivan Lazar Miljenovic
On 22 April 2012 22:33, Johannes Waldmann waldm...@imn.htwk-leipzig.de wrote: Hi. I want to produce a statically linked executable. I am trying 'ghc  --make -fforce-recomp -static -optl-static  Main' but it gives lots of  errors like (.text+0xfa): undefined reference to

Re: [Haskell-cafe] static linking with ghc?

2012-04-22 Thread Johannes Waldmann
Scott Lawrence bytbox at gmail.com writes: Adding -optl-pthread fixes it for me. great! in my case, I also needed to add '-pgml g++' and together, this seems to work. Thanks. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org