Building extra-libs using Cabal
duncan.coutts at worc.ox.ac.uk
Mon Oct 2 19:26:48 EDT 2006
On Tue, 2006-10-03 at 00:07 +0100, Ross Paterson wrote:
> On Thu, Sep 28, 2006 at 11:34:08AM +0100, Ross Paterson wrote:
> > On Thu, Sep 28, 2006 at 11:19:42AM +0100, Simon Peyton-Jones wrote:
> > > The relevant packages are:
> > >
> > > Haddock errors: http://hackage.haskell.org/trac/ghc/ticket/894
> > > network
> > > xhtml
> > > opengl
> > > openal
> > > alut
> > xhtml is fixed. The others (plus GLUT, I think) are a Cabal problem.
> To elaborate, when cpphs is called from the haddock phase, it's not
> passed the cpp arguments that are used by build. I think Cabal needs
> a cpp-options field, for cpp options needed for Haskell source. They're
> currently in cc-options or compiler-specific option fields, but they
> don't really belong there.
Yes, Lennart Kolmodin was just investigating this problem for Gentoo and
came to a similar conclusion.
We can't pass all the cc-options to hsc2hs or cpphs, we'd have to filter
them which seems a bit ugly. The other ugly option is to add these flags
Anyone got a suggestion for what to do in the short term (ie the 1 week
'til the ghc & cabal release) ?
More information about the Libraries