Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cabal rebuild all with enable-shared flag

I am having an issue with building a shared library with ghc and I think I need to rebuild my haskell packages with --enable-shared, is there an easy way to rebuild all of my packages with cabal with the flag --enable-shared?

like image 822
Charles Durham Avatar asked Nov 02 '11 13:11

Charles Durham


1 Answers

If you have a ~/.cabal/world, cabal install --reinstall --enable-shared world could work, but test with the --dry-run flag first. That will, however only take care of cabal-installed packages. If you have packages installed with your distro's package manager, the distro might also provide shared versions for those (otherwise, you'd have to do it manually). Also, it would probably be helpful to set shared: True in ~/.cabal/config.

like image 71
Daniel Fischer Avatar answered Oct 13 '22 04:10

Daniel Fischer