[arch-haskell] What to do about --enable-shared?

Peter Simons simons at cryp.to
Wed Oct 27 14:11:25 EDT 2010

Hi guys,

I've made some tests with --enable-shared, and the good news is that it
works great. The bad news is that Cabal doesn't honor the flag when
building executables. Apparently, this is a known issue:


A work-around that has been suggested is to specify --ghc-opt=-dynamic
for builds that contain executables, but this solution feels kind of
hack'ish. On the other hand, shared linkage cuts down binary size a lot,
which is good.

How do you feel about this issue? Any preferences?

Take care,

More information about the arch-haskell mailing list