Commit 4f7d5513 authored by Ian Lynagh's avatar Ian Lynagh

GHCi linker: Assume non-Haskell libraries are dynamic libs

This works around a segfault we get when trying to load libiconv.a on
some platforms.
parent 7d0a6701
......@@ -1105,6 +1105,9 @@ loadFrameworks pkg
-- If it isn't present, we assume it's a dynamic library.
locateOneObj :: [FilePath] -> String -> IO LibrarySpec
locateOneObj dirs lib
| not ("HS" `isPrefixOf` lib)
-- For non-Haskell libraries (e.g. gmp, iconv) we assume dynamic library
= assumeDll
| not isDynamicGhcLib
-- When the GHC package was not compiled as dynamic library
-- (=DYNAMIC not set), we search for .o libraries or, if they
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment