• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using libcrypto & the 10.6 SDK with a minimum OS requirement of 10.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Using libcrypto & the 10.6 SDK with a minimum OS requirement of 10.5 (From: Jim Correia <email@hidden>)
 >Re: Using libcrypto & the 10.6 SDK with a minimum OS requirement of 10.5 (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Using libcrypto & the 10.6 SDK with a minimum OS requirement of 10.5
  • Next by Date: [SOLVED] Re: error: invalid use of 'static' in linkage specification
  • Previous by thread: Re: Using libcrypto & the 10.6 SDK with a minimum OS requirement of 10.5
  • Next by thread: Re: Using libcrypto & the 10.6 SDK with a minimum OS requirement of 10.5
  • Index(es):
    • Date
    • Thread