File ghc-8.0.2-Cabal-dynlibdir.patch of Package ghc

Index: ghc-8.10.0.20200123/libraries/Cabal/Cabal/Distribution/Simple/InstallDirs.hs
===================================================================
--- ghc-8.10.0.20200123.orig/libraries/Cabal/Cabal/Distribution/Simple/InstallDirs.hs
+++ ghc-8.10.0.20200123/libraries/Cabal/Cabal/Distribution/Simple/InstallDirs.hs
@@ -207,7 +207,7 @@ defaultInstallDirs' False comp userInsta
            _other -> "$abi" </> "$libname",
       dynlibdir    = "$libdir" </> case comp of
            UHC    -> "$pkgid"
-           _other -> "$abi",
+           _other -> "$compiler" </> "$pkgkey",
       libexecsubdir= "$abi" </> "$pkgid",
       flibdir      = "$libdir",
       libexecdir   = case buildOS of