Hi there,

> I feel I am almost there, I found the -fvia-C flag (why is this not
> the default?) and compiled all my modules to object files, but then
> realized that there are not static libraries in hslibs.  I think I am
> missing some essential detail about the ghc Makefile system, but I
> don't know where to start searching.
> 
> I unpacked ghc-4.08.2 sources and hc files and followed the
> instructions in
> 
http://haskell.cs.yale.edu/ghc/docs/4.08.2/building/sec-building-from-so
urce.html

> The result was some .hi files in builds/data but no static libraries.
> Same problem in hslibs/*, except hslibs/lang.

Try the script in fptools/distrib/hc-build, which should be able to
bootstrap the compiler from .hc files automatically.  In particular,
it'll make sure that hslibs/lang is built before trying to build the
compiler.

> I put the line

> HsLibsFor="ghc"

> in $(TOP)/mk/build.mk, but then I run out of ideas.  (For a start, is
> there any way of checking that my build.mk is actually loaded?)

Yes - try 'make -d', or

        $ make show VALUE=HsLibsFor
        HsLibsFor=ghc

cheers,
        Simon

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to