diff --git a/Cabal/Distribution/Simple/Register.hs b/Cabal/Distribution/Simple/Register.hs index f9b59aa22c8..87c67052f96 100644 --- a/Cabal/Distribution/Simple/Register.hs +++ b/Cabal/Distribution/Simple/Register.hs @@ -295,7 +295,8 @@ generalInstalledPackageInfo adjustRelIncDirs pkg lib clbi installDirs = then libdir installDirs : extraLibDirs bi else extraLibDirs bi, IPI.hsLibraries = [ libname - | LibraryName libname <- componentLibraries clbi ], + | LibraryName libname <- componentLibraries clbi + , hasLibrary ], IPI.extraLibraries = extraLibs bi, IPI.extraGHCiLibraries = [], IPI.includeDirs = absinc ++ adjustRelIncDirs relinc,