cURL / Mailing Lists / curl-library / Single Mail


Re: can i statically compile the lib?

From: Meir Yanovich <>
Date: Tue, 1 Apr 2008 10:58:21 +0300

i just fallowed the INSTALL file
HTTP_ONLY disables all protocols except HTTP
that in the code is disabling me all the protocols
#ifdef HTTP_ONLY
#endif /* HTTP_ONLY */
i added it to the "makefile.vc6"
the compilation is in release mode
so what else can i do ?

On Tue, Apr 1, 2008 at 9:38 AM, Dan Fandrich <> wrote:
> On Tue, Apr 01, 2008 at 09:13:12AM +0300, Meir Yanovich wrote:
> > ok i did it the documents i must say very clear
> > i compile with the HTTP_ONLY flag in wni32
> > and the static lib is 480 KB (491,540 bytes)
> > that is big for me is there any way to make it smaller ?
> An optimized HTTP-only libcurl static library for x86 under Linux is about
> 175 KB. It could be that your library includes debugging symbols,
> or you haven't eliminated all possible extras (e.g. the built-in manual).
> If you compile and link a simple curl "hello world" program (look in the
> examples directory) you'll get a much better idea of how much of that
> is code and how much is overhead.
> >>> Dan
> --
> The web change of address service
> Let webmasters know that your web site has moved
Received on 2008-04-01