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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have a ~/.cabal/world,
cabal install --reinstall --enable-shared worldcould work, but test with the--dry-runflag 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 setshared: Truein ~/.cabal/config.