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.
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
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
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