[project @ 2003-09-23 16:43:00 by wolfgang]
authorwolfgang <unknown>
Tue, 23 Sep 2003 16:43:00 +0000 (16:43 +0000)
committerwolfgang <unknown>
Tue, 23 Sep 2003 16:43:00 +0000 (16:43 +0000)
Mac OS X uses .dylib instead of .so, recognize that properly.

ghc/compiler/ghci/Linker.lhs

index 9137031..8f9fa34 100644 (file)
@@ -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