Dynamic libraries (.so/.dll/.dylib) go into a single shared directory (per package database)
- Split the
library-dirs
field of the package database intostatic-library-dirs
anddynamic-library-dirs
- Update Cabal and GHCs RPATH calculation mechanism to use the
dynamic-library-dirs
field of the package database - Reinvigorate haskell/cabal#3979 which adds a
--dylibdir
setting to Cabal, which specifies where dynamic libraries get copied- Update the Cabal RPATH calculation as mentioned above
- Cabal's
extralibdir
configuration field gets added to both thestatic-library-dirs
anddynamic-library-dirs
fields of the package database.