summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwolfgang <unknown>2003-09-23 16:43:00 +0000
committerwolfgang <unknown>2003-09-23 16:43:00 +0000
commit9c9c4ea91664b802dff3b580f21ea1f3c3ccb369 (patch)
tree016e3f52d0a85bf63cd9202fc7ea10e3729a90a1
parent2e160a48acce946bc2c94dc433e7cc50f5d725f8 (diff)
downloadhaskell-9c9c4ea91664b802dff3b580f21ea1f3c3ccb369.tar.gz
[project @ 2003-09-23 16:43:00 by wolfgang]
Mac OS X uses .dylib instead of .so, recognize that properly.
-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