Skip to content

Commit

Permalink
copy: Take into account extra-dyn-lib-flavours when copying bundled l…
Browse files Browse the repository at this point in the history
…ibrary

This fixes the DynWay case to match the other cases which take into
account extra-dyn-lib-flavours.
  • Loading branch information
mpickering committed Jul 2, 2024
1 parent 6eaba73 commit ca0a03d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cabal/src/Distribution/Simple/GHC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ installLib verbosity lbi targetDir dynlibTargetDir _builtDir pkg lib clbi = do
mkGenericSharedBundledLibName
platform
compiler_id
l
(l ++ f)
forM_ files $ \file ->
when (l' `isPrefixOf` file) $ do
isFile <- doesFileExist (i $ builtDir </> makeRelativePathEx file)
Expand All @@ -971,6 +971,7 @@ installLib verbosity lbi targetDir dynlibTargetDir _builtDir pkg lib clbi = do
dynlibTargetDir
file
| l <- extraBundledLibs (libBuildInfo lib)
, f <- "" : extraDynLibFlavours (libBuildInfo lib)
]
where
-- See Note [Symbolic paths] in Distribution.Utils.Path
Expand Down

0 comments on commit ca0a03d

Please sign in to comment.