curl-library
Re: Statically linking libcurl in Mac OS X.
Date: Mon, 14 Mar 2005 15:33:51 -0500
Including the object files in Xcode worked, but now I'm stuck with a
1.5MB bundle, which I really don't know how to cut down to size.
I must guess I'm ignorant of some UNIX voodoo for reducing its size to
something more in line to the older library coming in OS X (around
200kb).
I know this isn't a 100% libcurl question, but if someone can point me
to some way of stripping symbols/any other technique for reducing the
size of the generated code, I'd be grateful.
On Mar 8, 2005, at 16:13 , Dave Dribin wrote:
> On Mar 7, 2005, at 4:01 PM, Óscar Morales Vivó wrote:
>> Has anyone been before in a similar situation, or for whatever
>> reason created a bundle that contained the libcurl statically linked
>> to it? Any pitfalls to be aware of or any advice? Or anyone has a
>> sample Xcode project that compiles the libcurl? (I could work on
>> that quite easily)
>
> I've done this on OS X using the command line and makefiles, but
> never with XCode. Not sure how to do it in XCode, but if you can
> manually add object files to link into your program, just put the
> full path to the static library there. For example, if you installed
> your newer version in /usr/local, then you would link in this file:
>
> /usr/local/lib/libcurl.a
>
> This is standard gcc linking behavior.
>
> -Dave
>
Received on 2005-03-14