[Haskell-cafe] Cabal: --enable-shared and executables

Magnus Therning magnus at therning.org
Thu Oct 31 23:12:22 UTC 2013


On Thu, Oct 31, 2013 at 05:16:11PM -0400, Albert Y. C. Lai wrote:
> 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".

Ah, of course I ought to have checked the `cabal configure --help`.
That flag seems to be what I was looking for indeed.  It seems I've
only found a shortcoming of the Ghc docs, not a shortcoming of Cabal
:)

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: magnus at therning.org   jabber: magnus at therning.org
twitter: magthe               http://therning.org/magnus

If voting could really change things it would be illegal.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20131101/4f23aad7/attachment.sig>


More information about the Haskell-Cafe mailing list