Re: Universal Binary and Backwards compatability
Re: Universal Binary and Backwards compatability
- Subject: Re: Universal Binary and Backwards compatability
- From: "Alexander v. Below" <email@hidden>
- Date: Sat, 17 Sep 2005 11:51:54 +0200
Am 17.09.2005 um 07:52 schrieb Chad Armstrong:
If I create a Universal Binary, will it still work OK if I compile
my application to be able to be backwards compatible with older
systems (such as Jaguar)? Or are there any tricks to getting
things to work properly?
It is possible, but it will require a bit of magic (a.k.a. "work").
In practice it means you can't create the fat binary automatically,
as gcc 4 binaries require 10.3.9 or later. You have to build your x86
binary with gcc 4.0, and your PPC binary separately in another target
with gcc 3. Then you can use the lipo (1) tool to create a fat binary
from these input files.
Of course you have to take the normal steps to ensure compatibility
with target PCC OS X versions.
I have successfully done this, and set up a relatively automatic
build environment to do this. It requires one or two shell script
phases, and possibly could be optimized. But it is possible to create
binaries that run all the way from 10.2 to 10.4 x86. I have not
bothered trying to compile for 10.1 or earlier because - to be honest
- it is too much work for a too little demographic.
10.3 is still a large installed base, and sometimes it does not take
a lot to keep the 10.2 users happy, too. Using the Cross Development
SDKs it is really easy (and much! easier than trying to support
various versions of some other OS from Washington State).
Hope this helps
Alex
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden