[Buildroot] [PATCH] libcurl: use c-ares if available

Peter Korsgaard peter at korsgaard.com
Sun May 3 17:25:15 UTC 2015


>>>>> "John" == John Keeping <john at keeping.me.uk> writes:

 > By default libcurl uses the C library's DNS resolver which is
 > synchronous, even if an application is using libcurl's non-blocking mode
 > of operation.

 > Configure libcurl to use c-ares if it is selected so that it can resolve
 > addresses asynchronously if required.

 > Signed-off-by: John Keeping <john at keeping.me.uk>

> ---
 >  package/libcurl/libcurl.mk | 5 +++++
 >  1 file changed, 5 insertions(+)

 > diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk
 > index 014c5e3..825c844 100644
 > --- a/package/libcurl/libcurl.mk
 > +++ b/package/libcurl/libcurl.mk
 > @@ -46,6 +46,11 @@ LIBCURL_CONF_OPTS += --without-ssl --without-gnutls \
 >  	--without-polarssl --without-nss
 >  endif
 
 > +ifeq ($(BR2_PACKAGE_C_ARES),y)
 > +LIBCURL_DEPENDENCIES += c-ares
 > +LIBCURL_CONF_OPTS += --enable-ares
 > +endif

We prefer to be explicit about these dependencies, so I've added a
--disable-ares in the else clause and committed, thanks.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list