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. Thanks Ian _______________________________________________ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc