summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2015-05-02 11:58:18 +0100
committerPeter Korsgaard <peter@korsgaard.com>2015-05-03 19:25:24 +0200
commitff05e241f877615c127477dcda2ba99667a8d798 (patch)
tree5fcb4cf18f06dd62dccac0c2237ded105c928757
parent3d1807f935b10001b9703c9614f3cd4f9b14d69e (diff)
downloadbuildroot-ff05e241f877615c127477dcda2ba99667a8d798.tar.gz
buildroot-ff05e241f877615c127477dcda2ba99667a8d798.zip
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 <john@keeping.me.uk> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/libcurl/libcurl.mk7
1 files changed, 7 insertions, 0 deletions
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
OpenPOWER on IntegriCloud