10 Sep
2002
10 Sep
'02
9:41 p.m.
Speaking solely from the gcc side, if you can capture all the compilation commands, add "-PIC", and then grab the ld flags and change the options there, everything should work. This is, obviously, not terribly convenient but anything that links as a binary should work as a shared library as well. Simon, am I missing something?
Yes :-) -fPIC doesn't work for the code generated by GHC. You can make shared libraries without -fPIC, but that also imposes constraints on the code, constraints which the code generated by GHC doesn't satisfy at the moment. I can't remember the exact details, but John Levine's Linker book is a good place to start. Cheers, Simon