[Haskell-cafe] Tell cabal-install to generate only shared libraries
limestrael at gmail.com
Thu Nov 3 01:04:13 CET 2011
Apparently, disabling library vanilla causes GHC not to generate the ".hi"
For instance when 'cabal install quickcheck --disable-library-vanilla':
cabal: QuickCheck-126.96.36.199: file Test/QuickCheck/All.hi is missing (use
QuickCheck-188.8.131.52: file Test/QuickCheck/Function.hi is missing (use --force
QuickCheck-184.108.40.206: file Test/QuickCheck/State.hi is missing (use --force to
QuickCheck-220.127.116.11: file Test/QuickCheck/Exception.hi is missing (use
QuickCheck-18.104.22.168: cannot find libHSQuickCheck-22.214.171.124.a on library path
--force to override)
2011/11/3 Ivan Perez <ivanperezdominguez at gmail.com>
> 2011/11/2 Yves Parès <limestrael at gmail.com>:
> > Hello,
> > When I tell cabal-install to build shared libraries (with "Shared: True"
> > .cabal/config), it doubles the libraries installation time since it
> > them twice, since it seems that is what GHC's flag "-shared" does.
> > Is there a way to generate only the .so and not the the .a libs?
> Do not build ordinary libraries. This is useful in conjunction
> with --enable-library-profiling
> to build only profiling libraries, rather than profiling and
> ordinary libraries.
> Haven't tried it myself. Maybe it works in combination with
> From: http://haskell.org/ghc/docs/7.0.4/html/Cabal/builders.html
> > Furthermore, I have the impression that the executables compiled by
> > cabal-install are always linked statically... Can I tell cabal-install to
> > activate the GHC's flag "-dynamic" for executables?
> The following two trac tickets mention a separate flag,
> named --enable-executable-dynamic:
> If that doesn't work, you can probably pass some argument to ghc with
> > Thanks.
> > _______________________________________________
> > Haskell-Cafe mailing list
> > Haskell-Cafe at haskell.org
> > http://www.haskell.org/mailman/listinfo/haskell-cafe
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe