[arch-haskell] What to do about --enable-shared?
Peter Simons
simons at cryp.to
Sat Oct 12 07:37:21 UTC 2013
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:
http://hackage.haskell.org/trac/hackage/ticket/600
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,
Peter
More information about the arch-haskell
mailing list