I have just been grabbing the libcurl.a file after running 'make
install'. I added
that to my XCode project and use '-lcurl'. Like I said, everything
built fine, it
just still looks to the system for other .dylibs. What all do I need to
add to my
project in order to make everything static? I had assumed that the
got encapsulated in the libcurl.a, but I must be wrong.
Another issue I have is that I need both ppc and i386 support. I've
been using lipo
to make common libs from different builds.
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Dan Fandrich
Sent: Tuesday, August 26, 2008 12:08 PM
Subject: Re: Building a static version of the library
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
> Everything is building perfectly.
> I?m wanting to use a static library to attach to my main app on Mac OS
> there some reason why the
> static library still looks at the local system for the installed
> library? If I remove/rename the
> libcurl.3.dylib from the /usr/lib folder, the application doesn?t load
> library properly. Am I missing
> a setting in the build process? Any help would be appreciated.
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
http://www.MoveAnnouncer.com The web change of address
Let webmasters know that your web site has moved
Received on 2008-08-26