[MLton] Patch: Leopard/powerpc

Matthew Fluet fluet at tti-c.org
Fri Dec 14 15:34:14 PST 2007


On Sat, 8 Dec 2007, Wesley W. Terpstra wrote:
> I needed to make these changes to get the runtime to compile clean on Leopard 
> 10.5.1.
> I don't have an x86 mac to see if Leopard uses __eip or eip.

I imagine that you need XCode to compile MLton, and I'm pretty sure that 
the Leopard XCode install lets you create universal binaries, so the i386 
headers should be around.  (They were on a Leopard PPC MacPro.)

> According to my system headers, dlsym/dladdr are available since 10.3, as is 
> _dyld_get_image_header_containing_address. Since 
> _dyld_get_image_header_containing_address is deprecated in 10.5, my patch 
> uses dladdr which should work on all versions that 
> _dyld_get_image_header_containing_address works on, as well as future 
> versions.

It was deprecated in 10.4 too, though I lived with the warnings.

Patch committed.




More information about the MLton mailing list