
It would be nice if ghc-pkg had options to display the value of $libdir or at least the given conf file. I'm trying to get my Autotools configure script to find Rts.h, and it's a bit of a pain. My current approach is to use "readlink -f `which ghc`" and get it from there, but that fails with the latest MacOS X version because it uses small shell scripts in unusual places instead of symlinks.
'ghc -v' will tell you the location of package.conf, which for a normal GHC install is located in $libdir. Does that help? Cheers, Simon

Simon Marlow wrote:
It would be nice if ghc-pkg had options to display the value of $libdir or at least the given conf file. [...]
I had *major* pains with this for the upcoming HOpenGL release, too. :-P
'ghc -v' will tell you the location of package.conf, which for a normal GHC install is located in $libdir. Does that help?
Ooops, never noticed that. Since when (GHC x.y) has this been working? Is this the "official" way? IMHO it's quite important, because due to the heavy inter-module optimizations, packages are closely tied to a specific GHC version, so $libdir is the only sensible place for package installation. Cheers, S.
participants (2)
-
Simon Marlow
-
Sven Panne