[project @ 2003-05-19 15:39:17 by simonpj]
authorsimonpj <unknown>
Mon, 19 May 2003 15:39:18 +0000 (15:39 +0000)
committersimonpj <unknown>
Mon, 19 May 2003 15:39:18 +0000 (15:39 +0000)
commit7f4807640530a0e4d9d7efdeb6becee514274f02
treee8f30cc403c1a1ff93d69815bd2ea20ed143cffb
parent143f478bd5ff1dc46472c44605bb0d9e08a942b1
[project @ 2003-05-19 15:39:17 by simonpj]
---------------------------------
Improve the dynamic-linking story
---------------------------------

Arrange proper initialisation for the dynamic linker.  Whenever the dynamic linker does
anything (Linker.linkExpr), it first initialises itself, arranging to only do so once
of course.

"Initialising itself" includes loading any .o files, libraries, and packages specified
on the command line.  The main effect of all this is to fix a Template Haskell problem,
which happened when a TH link needed some C library that it couldn't link.  Now it does.

While I was at it, I tidied up main/Main.hs quite a bit.  This is a delicate area (handling
the command line arguments), but I don't believe I broke anything!  All the libraries
build, and lots of tests run.

Wolfgang: I also jiggled the darwin_TARGET_OS stuff a little in Linker.lhs, but again
I think the net effect is zero. You might want to check.
ghc/compiler/ghci/InteractiveUI.hs
ghc/compiler/ghci/Linker.lhs
ghc/compiler/ghci/ObjLink.lhs
ghc/compiler/main/Main.hs