[Haskell-cafe] how ghc finds libgmp.so when linking

Johannes Waldmann johannes.waldmann at htwk-leipzig.de
Wed Apr 13 13:33:21 UTC 2016

more data:

when I compile with  -optl -L/usr/local/lib,
then the correct library is found,

when I put  ("ld flags", "-L/usr/local/lib")
in ghc-7.10.3/settings, then it's not,

when I put ("C compiler link flags", "-L/usr/local/lib")
in settings, then it is.

So, I can leave it at that.
But I still don't know how this came to be.
I built this ghc-7.10.3 from source.

- J.W.

More information about the Haskell-Cafe mailing list