haskell/cabal — pull request #1435 by dcoutts (2013-08-24 18:51:08+00:00)
Title: Calling ghci also needs the linker options

For a normal compile we do separate invocations of ghc for compiling as
for linking. But for repl we have to do just the one invocation, so
that one has to include all the linker stuff too, like -l flags and any
.o files from C files etc.

Need to see how .o files from C files works with ghci that uses dynamic
loading by default.