Patchwork libcurl: enabled IPv6 support

login
register
mail settings
Submitter Vanya Sergeev
Date April 23, 2012, 6:46 a.m.
Message ID <1335163564-1368-1-git-send-email-vsergeev@gmail.com>
Download mbox | patch
Permalink /patch/154328/
State Superseded
Headers show

Comments

Vanya Sergeev - April 23, 2012, 6:46 a.m.
From: vsergeev <vsergeev@gmail.com>

Modified libcurl package Makefile to pass the configure option for IPv6 support
if BR2_INET_IPV6 is set.

Signed-off-by: Vanya Sergeev <vsergeev at gmail.com>
---
 package/libcurl/libcurl.mk |    4 ++++
 1 file changed, 4 insertions(+)
Peter Korsgaard - April 24, 2012, 8:35 p.m.
>>>>> "Vanya" == Vanya Sergeev <vsergeev@gmail.com> writes:

 Vanya> From: vsergeev <vsergeev@gmail.com>
 Vanya> Modified libcurl package Makefile to pass the configure option for IPv6 support
 Vanya> if BR2_INET_IPV6 is set.

 Vanya> Signed-off-by: Vanya Sergeev <vsergeev at gmail.com>
 Vanya> ---
 Vanya>  package/libcurl/libcurl.mk |    4 ++++
 Vanya>  1 file changed, 4 insertions(+)

 Vanya> diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk
 Vanya> index e094e31..127d9ca 100644
 Vanya> --- a/package/libcurl/libcurl.mk
 Vanya> +++ b/package/libcurl/libcurl.mk
 Vanya> @@ -10,6 +10,10 @@ LIBCURL_SITE = http://curl.haxx.se/download
 Vanya>  LIBCURL_INSTALL_STAGING = YES
 Vanya>  LIBCURL_CONF_OPT = --disable-verbose --disable-manual --enable-hidden-symbols
 
 Vanya> +ifeq ($(BR2_INET_IPV6),y)
 Vanya> +LIBCURL_CONF_OPT += --enable-ipv6

Curl might be a bit special in the sense that it is using AC_TRY_RUN
to detect ipv6 support (which doesn't work when cross compiling), but
other packages might have the same problem and we already handle ipv6
disabling on a global level, so I have instead added --enable-ipv6 when
BR2_INET_IPV6 is enabled on a global level in package/Makefile.in.

Patch

diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk
index e094e31..127d9ca 100644
--- a/package/libcurl/libcurl.mk
+++ b/package/libcurl/libcurl.mk
@@ -10,6 +10,10 @@  LIBCURL_SITE = http://curl.haxx.se/download
 LIBCURL_INSTALL_STAGING = YES
 LIBCURL_CONF_OPT = --disable-verbose --disable-manual --enable-hidden-symbols
 
+ifeq ($(BR2_INET_IPV6),y)
+LIBCURL_CONF_OPT += --enable-ipv6
+endif
+
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 LIBCURL_DEPENDENCIES += openssl
 LIBCURL_CONF_ENV += ac_cv_lib_crypto_CRYPTO_lock=yes