Mac OS X 10.5 support

Michel Fortin michel.fortin at
Tue Feb 14 03:38:51 PST 2012

On 2012-02-14 10:41:43 +0000, Sönke Ludwig 
<ludwig at> said:

> Attached the patch (the pattern uses % instead of * and the 10.5/10.6
> arguments are reversed on line 40).
> There is an easy way to install the 10.5 SDK on a 10.7 machine:
> Maybe that would be a viable solution to keep 10.5 support - of course
> assuming that it's really just the SDK.

You don't actually need the 10.5 SDK to create a 10.5-compatible 
binary, unless you're compiling for PowerPC. All you have to do is use 
the "-mmacosx-version-min=10.5" argument when invoking GCC and make 
sure you're not using any API not present on 10.5 (and if you're using 
one it'll be weak-linked and you have to check at runtime if it exists 
before using it). You can still use the 10.6 or 10.7 SDK, or not 
specify any SDK letting the compiler use the system-installed headers 
and libraries. I'm doing it with my apps, and it works great.

Michel Fortin
michel.fortin at

More information about the Digitalmars-d mailing list