Making GHCi object files on MacOS

Wolfgang Thaller wolfgang.thaller at
Wed Dec 10 18:00:31 EST 2003

George Russell wrote:

> I was producing it by invoking "ld" directly, since I wrote the
> Makefile before the --auto-ghci-lib was introduced.  However now I use
> --auto-ghci-lib and it seems to work, thanks.

> Thank you, that seems to work.  Now what should I do to prevent the 
> GHCi linker
> complaining about duplicate definitions for "__module_registered" 
> (which
> seems to be defined in some way in each object file)?

In case anybody doesn't want to use ghc-pkg: You also need to pass the 
'-x' option to ld.



More information about the Glasgow-haskell-users mailing list