From ff05e241f877615c127477dcda2ba99667a8d798 Mon Sep 17 00:00:00 2001 From: John Keeping Date: Sat, 2 May 2015 11:58:18 +0100 Subject: [PATCH] libcurl: use c-ares if available 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. [Peter: explicitly disable c-ares support if not enabled] Signed-off-by: John Keeping Signed-off-by: Peter Korsgaard --- package/libcurl/libcurl.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk index f0d7bacaaa..0ce2dfd7de 100644 --- a/package/libcurl/libcurl.mk +++ b/package/libcurl/libcurl.mk @@ -46,6 +46,13 @@ 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 +else +LIBCURL_CONF_OPTS += --disable-ares +endif + # Configure curl to support libssh2 ifeq ($(BR2_PACKAGE_LIBSSH2),y) LIBCURL_DEPENDENCIES += libssh2 -- 2.30.2