
25 Nov
2009
25 Nov
'09
12:25 p.m.
On Wed, Nov 25, 2009 at 10:16:40AM +0000, Duncan Coutts wrote:
Right, so you'll need a custom Setup.hs. It will collect the info from your ./configure script. It will need to update the ProgramConfiguration environment that Cabal uses. The ProgramConfiguration tells Cabal where various named programs live and if they need any extra flags (this is the information store that the --with-prog= and --prog-options= flags modify).
You'll want to set the gcc to be used. That will propagate automatically to the hsc2hs call, though not to ghc (though arguably it should). You'll need to modify the program configuration to add in the appropriate flags to the ghc calls.
Thanks for sketching this out. It seems like exactly what I need. Regards, Matt