From: wolfgang Date: Sun, 6 Oct 2002 12:45:41 +0000 (+0000) Subject: [project @ 2002-10-06 12:45:41 by wolfgang] X-Git-Tag: Approx_11550_changesets_converted~1588 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=428bc7ee806bb4a1b29a487854d54bd6ff5a931e;p=ghc-hetmet.git [project @ 2002-10-06 12:45:41 by wolfgang] Make it compile for Mac OS X again. --- diff --git a/ghc/compiler/ghci/Linker.lhs b/ghc/compiler/ghci/Linker.lhs index eec2e65..2b45436 100644 --- a/ghc/compiler/ghci/Linker.lhs +++ b/ghc/compiler/ghci/Linker.lhs @@ -732,11 +732,13 @@ loadFramework extraPaths rootname = do { mb_fwk <- findFile mk_fwk (extraPaths ++ defaultFrameworkPaths) ; case mb_fwk of Just fwk_path -> loadDLL fwk_path - Nothing -> return (Just "not found") + Nothing -> return (Just "not found") } -- Tried all our known library paths, but dlopen() -- has no built-in paths for frameworks: give up where mk_fwk dir = dir ++ '/' : rootname ++ ".framework/" ++ rootname + -- sorry for the hardcoded paths, I hope they won't change anytime soon: + defaultFrameworkPaths = ["/Library/Frameworks", "/System/Library/Frameworks"] #endif \end{code}