Patch for shared libraries support on FreeBSD
asuffield at suffields.me.uk
Wed Dec 30 07:02:25 EST 2009
On Wed, Dec 30, 2009 at 12:09:08PM +0100, Maxime Henrion wrote:
> - Is there a plan to deal with the ldconfig cache on UNIX systems? As
> things are now, I had to manually add all the package directories
> under /usr/local/lib/ghc-6.12.1/ to be able to run the generated
> executable. I guess Cabal could produce a list of directories in some
> way for the system to do the right thing afterward, or we need some kind
> of a hack for setting LD_LIBRARY_PATH prior to starting the executable.
It should have been rpathed to the appropriate place (which is not
ideal, but there's no good solution here).
Also, in case anybody knows what's going on here: I noted the other
day that the shared libraries (including rts) created contain a bunch
of bogus .Lxxx symbols - those shouldn't be finding their way into the
symbol table, and it doesn't happen on Linux/amd64.
More information about the Cvs-ghc