From: wolfgang Date: Tue, 23 Sep 2003 16:43:00 +0000 (+0000) Subject: [project @ 2003-09-23 16:43:00 by wolfgang] X-Git-Tag: Approx_11550_changesets_converted~419 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=9c9c4ea91664b802dff3b580f21ea1f3c3ccb369 [project @ 2003-09-23 16:43:00 by wolfgang] Mac OS X uses .dylib instead of .so, recognize that properly. --- diff --git a/ghc/compiler/ghci/Linker.lhs b/ghc/compiler/ghci/Linker.lhs index 9137031..8f9fa34 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