Linking issue between 10.5 and 10.6
Linking issue between 10.5 and 10.6
- Subject: Linking issue between 10.5 and 10.6
- From: Nick Blievers <email@hidden>
- Date: Tue, 16 Nov 2010 15:05:36 +1100
I am trying to create a binary that will run on 10.5 and 10.6. It needs to use some features that are only available in 10.6, when its run on 10.6. So, should be easy enough, I compiled using the 10.6 SDK, but set -mmacosx-min-version=10.5 and MACOSX_DEPLOYMENT_TARGET =10.5 as per:
This gets me most of the way there. However, I need to link against libxml2. And on 10.5: /usr/lib/libxml2.2.dylib (compatibility version 9.0.0, current version 9.16.0) and 10.6 /usr/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.3.0)
So when I try and run my application on 10.5, I get an incompatible library version error.
What I would like to do, is tell the linker that I want to use 9.0.0 as the base library version (rather than 10.0.0). How can I do this? Linking against the 10.5 SDK wont work as I need features from 10.6 (not libxml2 features, cocoa stuff).
Thanks
Nick
PS I have multiple binaries, one built with xcode, one with makefiles and I have the same issue in both places. |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden