Re: Using libcrypto & the 10.6 SDK with a minimum OS requirement of 10.5
Re: Using libcrypto & the 10.6 SDK with a minimum OS requirement of 10.5
- Subject: Re: Using libcrypto & the 10.6 SDK with a minimum OS requirement of 10.5
- From: Jim Correia <email@hidden>
- Date: Fri, 18 Sep 2009 19:18:57 -0400
On Sep 18, 2009, at 7:13 PM, Jens Alfke wrote:
On Sep 18, 2009, at 3:48 PM, Jim Correia wrote:
If I like to libcrypto, this records libcrypto.0.9.8 in the binary,
which then won't launch on 10.5.
You should link to libcrypto.dylib (the symlink), not to the actual
version-numbered dylib. That way the symlink will resolve to the
right library on different platforms.
IIRC there was (is?) an Xcode bug where if you added a symlink to
the project it would 'helpfully' resolve it for you, causing this
sort of problem. I'm not sure whether this is fixed. What UI did you
use to add the library to the project?
This happens whether I use the open panel to choose the file, or
choose the library via the target inspector.
If I link against the unversioned file, as you suggest, the versioned
file gets recorded by the linker anyway.
/Developer/usr/bin/gcc-4.2 -arch x86_64 -mmacosx-version-min=10.5
[...] -lcrypto [...]
otool -L binary
binary:
[...]
/usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current
version 0.9.8)
[...]
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden