-rtsopts doesn't work on Snow Leopard
igloo at earth.li
Wed Mar 31 13:03:33 EDT 2010
On Wed, Mar 31, 2010 at 12:41:49PM +1100, Roman Leshchinskiy wrote:
> With -rtsopts, GHC compiles an additional C file using mkExtraCObj.
> This function calls runCc but doesn't pass machdepCCOpts to it,
> producing a 64 bit file on Snow Leopard instead of 32 bit one which
> breaks linking. The fix is probably just to add machdepCCOpts to the
> gcc call
Aha, thanks for the diagnosis! I've pushed a patch.
> The runCc call in runPhase_MoveBinary looks a bit suspicious, too.
I haven't looked at this yet.
More information about the Cvs-ghc