extra-libraries, hs-libraries, libHSbase_cbits and dynamic linking

Wolfgang Thaller wolfgang.thaller at gmx.net
Thu Mar 3 15:40:35 EST 2005


Hi All,

I've run into yet another (non-critical) build system problem related 
to dynamic linking.

Libraries that are listed in "hs-libraries" get different versions 
according to the current way, while libraries in extra-libraries don't.
The library libHSbase_cbits is in extra_libraries because it's written 
entirely in C, so having a separate profiling version is not necessary. 
However, it _does_ make sense to have a separate 
libHSbase_dyn.[dylib|so]. It would have to be in hs-libraries for that 
to work.

Right now, all the 'cbits' libraries will be linked statically even 
when -dynamic is specified on the GHC command line. It's not a big 
problem because they are small (a total of 92K for _all_ of the cbits 
libraries taken together).

Any Advice?

Cheers,

Wolfgang



More information about the Cvs-ghc mailing list