Re: cross-compiling and ghc.mk file hacking

2011-03-21 Thread Mark Lentczner
Thanks for all the great info, Simon! Somehow I missed that particular page in the wiki - I don't think it is linked to by the building overview page. While I agree that the "build == host" config, resulting in a stage2 compiler that is the cross compiler would probably result in a better cross-co

Re: cross-compiling and ghc.mk file hacking

2011-03-21 Thread Simon Marlow
Hi Mark, On 19/03/2011 17:23, Mark Lentczner wrote: I have a cross-compilation situation that I think is common enough: * I have a supported, stock GHC on platform X * I have two gcc/bindist tool chains on platform X: both run on platform X, one produces code for X, another for platform Y * I ca

cross-compiling and ghc.mk file hacking

2011-03-19 Thread Mark Lentczner
I have a cross-compilation situation that I think is common enough: * I have a supported, stock GHC on platform X * I have two gcc/bindist tool chains on platform X: both run on platform X, one produces code for X, another for platform Y * I can even execute things built for platform Y via a "wrapp