cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Mac OS 32-bit libcurl (was Re: use libcurl source files directly rather than link with library)

From: Tom Bishop, Wenlin Institute <tangmu_at_wenlin.com>
Date: Mon, 30 May 2011 13:23:31 -0700

On May 30, 2011, at 1:03 PM, Daniel Johnson wrote:

> By default with Xcode 3.2.6 and earlier, the Mac OS X linker will always search every directory in its search path for a shared library in the form of libfoo.dylib first. Only if it doesn't find one will it go back and look for a static library, libfoo.a. That's why it's finding /usr/lib/libcurl.dylib and ignoring your static library. You can override this behavior by using the switch -search_paths_first when linking. The -search_paths_first option became the default with Xcode 4.

I see. That would solve the same problem that was solved by renaming the static library.

Best wishes,

Tom

文林 Wenlin Institute, Inc. Software for Learning Chinese
E-mail: wenlin@wenlin.com Web: http://www.wenlin.com
Telephone: 1-877-4-WENLIN (1-877-493-6546)

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-30