
24 Sep
2008
24 Sep
'08
6:22 p.m.
Ian Lynagh
Running ghc-pkg describe rts will show you library-dirs, amongst other things.
Ah, ok. Well, the gmp library directory is indeed listed there. But what exactly is ghc supposed to do with it? From the behavior I'm seeing, it looks like it passes -L<dir> to the linker, but not -Xlinker -R<dir>. pwd gets compiled and linked just fine; it only complains when it runs. The *dynamic* linker can't find libgmp.so, since it isn't in a systemwide library directory, and pwd wasn't linked with -Xlinker -R<dir>. paul