cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: can i statically compile the lib?

From: Meir Yanovich <meiry242_at_gmail.com>
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
#define CURL_DISABLE_TFTP
#define CURL_DISABLE_FTP
#define CURL_DISABLE_LDAP
#define CURL_DISABLE_TELNET
#define CURL_DISABLE_DICT
#define CURL_DISABLE_FILE
#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 <dan_at_coneharvesters.com> 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
> --
> http://www.MoveAnnouncer.com The web change of address service
> Let webmasters know that your web site has moved
>
Received on 2008-04-01