cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Building a static version of the library

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 26 Aug 2008 09:08:21 -0700

On Tue, Aug 26, 2008 at 09:26:21AM -0400, Zachary Page wrote:
> I?m building a fresh version of libcurl (7.18.2) with c-ares support (1.5.1).
> Everything is building perfectly.
>
> I?m wanting to use a static library to attach to my main app on Mac OS X. Is
> there some reason why the
>
> static library still looks at the local system for the installed dynamic
> library? If I remove/rename the
>
> libcurl.3.dylib from the /usr/lib folder, the application doesn?t load my
> library properly. Am I missing
>
> a setting in the build process? Any help would be appreciated. Thanks!

You should be able to simply link your application with the output of
`curl-config --static-libs` to link it statically to libcurl. Is that what
you're doing?

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-08-26