Booting from HC files
kili at outback.escape.de
Fri Feb 8 08:51:34 EST 2008
On Tue, Feb 05, 2008 at 09:30:39AM +0000, Simon Marlow wrote:
> If using the generated Makefiles is too hard for bootstrapping, then by
> all means build an alternative solution using hand-written Makefiles or
Ok, sounds like a plan.
> >- I need a simple way to get transitive inter-library dependencies
> > that'll be included in the HC file bundle.
> I don't have a good enough grasp of the details to suggest a good solution
> here, I'm afraid.
I'm doing this now using ghc-pkg-inplace and some shell commands
that create a file Makefile.dep in all library directories. Each
Makefile.dep then looks like this:
DEP_PKGS += base
DEP_PKGS += directory
It's ugly, but it works (unless circular dependencies creep in),
and from $(DEP_PKGS) the correct flags for gcc etc. can be derived.
Hopefully I'll see this weekend wether this works or not.
In god we trust, in C we code.
-- Marc Balmer
More information about the Cvs-ghc