[Haskell] Re: building shared objects
Simon Marlow
simonmarhaskell at gmail.com
Fri Oct 13 05:41:37 EDT 2006
Jeremy Wazny wrote:
> 1. Use GHC with unregisterised libraries that have been compiled by gcc
> using -fPIC.
Interesting idea, as far as I'm aware noone has ever tried this. It might work,
but is almost certainly tricky.
> I haven't been able to figure out how to actually build unregisterised
> libraries.
You need to get yourself a GHC source tree and add 'GhcLibWays=u' to
mk/build.mk, then build everything. You'll also need to add -optc-fPIC in the
right places; add it to GhcLibHcOpts might be enough.
Cheers,
Simon
More information about the Haskell
mailing list