cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: how small can i make the curl executable to support ftps://?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 9 Aug 2005 13:57:22 -0700

On Tue, Aug 09, 2005 at 12:34:32PM -0400, Robert P. J. Day wrote:
> i've managed to cross-compile curl for the PPC, disabling darned
> near everything since all i need is support for ftps, and i statically
> linked all of the libraries that weren't already on my embedded
> system. you can see the few libs that are still being linked
> dynamically here:
>
> $ ppc_8xx-ldd curl
> libc.so.6 => /usr/local/eldk3.1.1/ppc_8xx/lib/libc.so.6
> libdl.so.2 => /usr/local/eldk3.1.1/ppc_8xx/lib/libdl.so.2
> ld.so.1 => /usr/local/eldk3.1.1/ppc_8xx/lib/ld.so.1
>
> the resulting PPC executable is still a whopping big 1.3M so i'm
> wondering how few libs i need to link to get ftps support. just how
> small can i make this thing? thanks.

I just built a x86 curl executable supporting ftp only in 123 KiB. An OpenSSL
enabled version is 850 KiB, so it's likely that the majority of your bloated
executable is also a result of OpenSSL. Your best bests are probably to
compile yourself a custom version of the OpenSSL libraries with only the
features you require, or try using GnuTLS instead of OpenSSL.

>>> Dan

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