13 Oct
2006
13 Oct
'06
9:41 a.m.
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