summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ghc/compiler/ghci/Linker.lhs2
1 files changed, 2 insertions, 0 deletions
diff --git a/ghc/compiler/ghci/Linker.lhs b/ghc/compiler/ghci/Linker.lhs
index 9137031fd9..8f9fa34b22 100644
--- a/ghc/compiler/ghci/Linker.lhs
+++ b/ghc/compiler/ghci/Linker.lhs
@@ -246,6 +246,8 @@ libish f = getFileSuffix f `elem` dynlib_suffixes
#ifdef mingw32_TARGET_OS
dynlib_suffixes = ["dll", "DLL"]
+#elif defined(darwin_TARGET_OS)
+dynlib_suffixes = ["dylib"]
#else
dynlib_suffixes = ["so"]
#endif