
31 Oct
2013
31 Oct
'13
5:16 p.m.
On 13-10-31 04:26 PM, Magnus Therning wrote:
We've had a discussion about DSOs on the arch-haskell mailing list[1] and it made me realise one thing:
--enable-shared will cause the generation of DSOs for libraries, but it won't cause executables to be dynamically linked
Is the only way to cause these executables to be dynamically linked against their dependencies to pass the -dynamic flag to ghc (e.g. via the --ghc-options flag when configuring the package)?
Have you seen --enable-executable-dynamic? It's there since cabal-install 0.14 or earlier. It is also available to Setup.hs since Cabal 1.14 or earlier, which came with GHC 7.4. Have you done a "cabal install --help | less" lately? Also "cabal configure --help | less".