summaryrefslogtreecommitdiff
path: root/ghc
diff options
context:
space:
mode:
authorsimonmar <unknown>2004-03-08 16:08:52 +0000
committersimonmar <unknown>2004-03-08 16:08:52 +0000
commitfffbee64ed9fd968b357697c7ff39ff44453365c (patch)
tree22c7d21938949f543a769fb95b4633851865fa88 /ghc
parent32b472052ded4529534cca0cece640f5c20d5bc8 (diff)
downloadhaskell-fffbee64ed9fd968b357697c7ff39ff44453365c.tar.gz
[project @ 2004-03-08 16:08:52 by simonmar]
Apply $libdir hack to GHCi libs in the same way as ordinary .a libs.
Diffstat (limited to 'ghc')
-rw-r--r--ghc/utils/ghc-pkg/Main.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ghc/utils/ghc-pkg/Main.hs b/ghc/utils/ghc-pkg/Main.hs
index d0f8d3a8f7..c5ec0d558f 100644
--- a/ghc/utils/ghc-pkg/Main.hs
+++ b/ghc/utils/ghc-pkg/Main.hs
@@ -351,7 +351,7 @@ doesLibExistIn lib d
checkGHCiLib :: [String] -> String -> String -> String -> Bool -> IO ()
checkGHCiLib dirs batch_lib_dir batch_lib_file lib auto_build = do
let ghci_lib_file = lib ++ ".o"
- bs <- mapM (\d -> doesFileExist (d ++ '/':ghci_lib_file)) dirs
+ bs <- mapM (doesLibExistIn ghci_lib_file) dirs
case [ dir | (exists,dir) <- zip bs dirs, exists ] of
[] | auto_build ->
autoBuildGHCiLib batch_lib_dir batch_lib_file ghci_lib_file