curl-library
Re: libcurl 7.29.0 --with-darwinssl built on OXS 10.8 to run on 10.6
Date: Tue, 30 Jul 2013 15:33:58 -0600
On Jul 30, 2013, at 3:04 PM, Clemens Gruber <clemens.gruber_at_pqgruber.com> wrote:
> Nick, does this mean that if the environment variable is set when compiling libcurl, stubs are inserted into the library to be used for the new API on older systems? Do you know how this works?
Apple explains how it works here: <https://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPFrameworks/Concepts/WeakLinking.html>
Basically, the curl_darwinssl code is written to use the new API if you are using a newer SDK and the symbols exist on the user's Security framework. If they don't exist, and MACOSX_DEPLOYMENT_TARGET was set to an older cat, then the code will fall back to the old API. If MACOSX_DEPLOYMENT_TARGET wasn't set, or wasn't set far back enough, then you can expect linker and runtime errors on older cats.
Nick Zitzmann
<http://www.chronosnet.com/>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-07-30