> How do we tell ghc to link our .o files with the transitive 
> closure of a
> root set of .o files from the compiler implementation? 

This is what libraries were invented for :-)  You need to make a libGHC.a,
like this:

        $ ar qa libGHC.a coreSyn/CoreSyn.o basicTypes/Id.o  ...
                 (include all the object files in GHC)

then link in libGHC.a in your main project.

> Thanks for any advice on this problem.

you're welcome!

Simon

Reply via email to