[Haskell-cafe] static linking with ghc?
bytbox at gmail.com
Sun Apr 22 14:39:02 CEST 2012
Adding -optl-pthread fixes it for me.
On Sun, 22 Apr 2012, Johannes Waldmann wrote:
> 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 `pthread_mutex_unlock'
> collect2: ld returned 1 exit status
> A similar thing is mentioned here (see Caveat)
> The ghc user guide talks a great length about shared libs
> but I don't see anything on how to switch this off.
> - J.W.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe