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