site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Is it possible to have a single build, which runs the public framework on 10.4 and the private one on 10.3? -- Terry _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On Jun 12, 2008, at 8:42 AM, Andy Green wrote: I have an app of which I'd like to deploy a single binary that will work on 10.3 and later. It links against the public DiskArbitration framework, so at the moment I can't run it on 10.3. I can, instead, use the 10.3.9/PrivateFrameworks/DiskArb.framework, and the ppc version builds and runs, however there's obviously no i386 build in there. And if so, what's the incantation? It's a dylib, so rather than linking it directly, you could provide a wrapper that opened on or the other and looked up the symbols and Did The Right Thing. You could also use install_name_tool at install time to select between them. The first option will be better if there are any header changes that make the libraries binary incompatible with each other, but is more work. If there are no header changes, you can do it in the installer by selecting which one to have it look for at install time, rather than trying to do it at runtime. This email sent to site_archiver@lists.apple.com
participants (1)
-
Terry Lambert