cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Using libcurl on top of lwip on POSIX embedded platform (take 2)

From: Mason <mpeg.blue_at_free.fr>
Date: Tue, 20 Mar 2012 16:40:06 +0100

Daniel Stenberg wrote:

> Mason wrote:
>
>> Proposed patch (will test ASAP)
>
> I've just pushed this change to the git repo.

Great!

After fixing two (minor) bugs in lwip, I was finally able to
HTTP GET Google's index page :-)

>> By the way, is there a way to make libcurl even smaller? :-)
>
> Disable more features by defining all the CURL_DISABLE_* options
> you can find that disable options you don't need!

$ grep CURL_DISABLE curl_config.h
#define CURL_DISABLE_COOKIES 1
#define CURL_DISABLE_CRYPTO_AUTH 1
#define CURL_DISABLE_DICT 1
#define CURL_DISABLE_FILE 1
#define CURL_DISABLE_FTP 1
#define CURL_DISABLE_GOPHER 1
/* #undef CURL_DISABLE_HTTP */
#define CURL_DISABLE_IMAP 1
#define CURL_DISABLE_LDAP 1
#define CURL_DISABLE_LDAPS 1
#define CURL_DISABLE_POP3 1
#define CURL_DISABLE_PROXY 1
#define CURL_DISABLE_RTSP 1
#define CURL_DISABLE_SMTP 1
#define CURL_DISABLE_TELNET 1
#define CURL_DISABLE_TFTP 1
#define CURL_DISABLE_TLS_SRP 1
/* #undef CURL_DISABLE_VERBOSE_STRINGS */

$ grep USE_ curl_config.h
/* #undef USE_ARES */
/* #undef USE_AXTLS */
/* #undef USE_BLOCKING_SOCKETS */
/* #undef USE_CYASSL */
/* #undef USE_GNUTLS */
/* #undef USE_GNUTLS_NETTLE */
/* #undef USE_LIBRTMP */
/* #undef USE_LIBSSH2 */
/* #undef USE_MANUAL */
/* #undef USE_NSS */
/* #undef USE_OPENLDAP */
/* #undef USE_OPENSSL */
/* #undef USE_POLARSSL */
/* #undef USE_SSLEAY */
/* #undef USE_THREADS_POSIX */
/* #undef USE_TLS_SRP */
/* #undef USE_WIN32_LARGE_FILES */
/* #undef USE_WIN32_SMALL_FILES */
/* #undef USE_WINDOWS_SSPI */
/* #undef USE_YASSLEMUL */

(I plan to disable VERBOSE_STRINGS once I've tested the setup.)

I guess it can't be much smaller? :-)

-- 
Regards.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-03-20