On Thu, Nov 12, 2009 at 09:43:42AM +0000, Simon Marlow wrote:
> >Would it be ok to move the -I$(GHC_INCLUDE_DIR) portion to ghc/ghc.mk?
> >
> >For example, add this one to the BootingFromHC section of ghc/ghc.mk:
> >
> > ghc_CC_OPTS += -I$(GHC_INCLUDE_DIR)
>
> I take it back, I think I understand why it is needed now. In fact, you
> had it in exactly the right place before!
Well, it doesn't cause harm there, but by just defining ghc_CC_OPTS,
the .hc bootstrap compile passed, too (at least on my test building
machine).
> In a normal build we use GHC to compile C files, which passes a number
> of its own options to the C compiler, one of which is a -I flag pointing
> to the GHC header files. So when bootstrapping we have to provide a
> similar flag.
>
> I'll add it to the top-level ghc.mk, along with a comment to explain why.
Thanks. I'll probably run some comparision of the results with the
-I$(GHC_INCLUDE_DIR) at the top level makefile and in ghc/ghc.mk,
but I want to get the other stuff done (preparing an update of the
OpenBSD port and depending ports like darcs and xmonad) first.
Ciao,
Kili
--
One <arm/exec.h> to bind them all.
-- Miod Vallat
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc