
Hi,
As I know it doesn't work for executables, see
http://hackage.haskell.org/trac/hackage/ticket/600
2010/3/15 Mathijs Kwik
Hi all,
I'm using cabal-install 0.8.0 on ghc 6.12.1 on linux I switched on shared library support on cabal.
Does this enable -dynamic and -fPIC during compilation and -dynamic -shared during linking? Or does it work a little differently?
I noticed everything works for libraries. .so files get created, and using ldd on them shows they depend on other haskell shared libraries. But for binaries, it seems it still compiles them with everything included. ldd'ing them shows no haskell-library dependencies and their size is quite big as well.
Is it possible to tell cabal-install I want binaries to use shared libs instead? And is there a way to specify which RTS to link binaries with? (debug, threaded, normal) Or a way to defer linking to an RTS so I can do this on execution using LD_PRELOAD ?
Thanks for any help Mathijs _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe