diff --git a/compiler/ghci/Linker.hs b/compiler/ghci/Linker.hs index 49f57e51b05844d1ed4d4148088efebe7bef9799..390d914169abcea29d77ad59feabe58f6b4d492f 100644 --- a/compiler/ghci/Linker.hs +++ b/compiler/ghci/Linker.hs @@ -345,8 +345,10 @@ linkCmdLineLibs' hsc_env pls = if null cmdline_lib_specs then return pls else do - -- Add directories to library search paths - let all_paths = let paths = framework_paths + -- Add directories to library search paths, this only has an effect + -- on Windows. On Unix OSes this function is a NOP. + let all_paths = let paths = takeDirectory (fst $ sPgm_c $ settings dflags) + : framework_paths ++ lib_paths ++ [ takeDirectory dll | DLLPath dll <- libspecs ] in nub $ map normalise paths