Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] gnutls: fix libz autodetection failure
@ 2014-02-04 14:57 Antoine Pierlot-Garcin
  2014-02-04 16:58 ` Arnout Vandecappelle
  2014-02-04 19:00 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Antoine Pierlot-Garcin @ 2014-02-04 14:57 UTC (permalink / raw)
  To: buildroot

The configure script finds libz in the distribution libraries, which causes
zlib support to be dropped from the cross-compiled GnuTLS.

Signed-off-by: Antoine Pierlot-Garcin <antoine@bokbox.com>
---
 package/gnutls/gnutls.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/gnutls/gnutls.mk b/package/gnutls/gnutls.mk
index 73b525d..c0bd778 100644
--- a/package/gnutls/gnutls.mk
+++ b/package/gnutls/gnutls.mk
@@ -28,8 +28,9 @@ GNUTLS_CONF_ENV = gl_cv_socket_ipv6=$(if $(BR2_INET_IPV6),yes,no) \
 	gl_cv_func_gettimeofday_clobber=no
 GNUTLS_INSTALL_STAGING = YES
 
-# libpthread autodetection poisons the linkpath
+# libpthread and libz autodetection poison the linkpath
 GNUTLS_CONF_OPT += $(if $(BR2_TOOLCHAIN_HAS_THREADS),--with-libpthread-prefix=$(STAGING_DIR)/usr)
+GNUTLS_CONF_OPT += $(if $(BR2_PACKAGE_ZLIB),--with-libz-prefix=$(STAGING_DIR)/usr)
 
 # gnutls needs libregex, but pcre can be used too
 # The check isn't cross-compile friendly
-- 
1.8.5.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] gnutls: fix libz autodetection failure
  2014-02-04 14:57 [Buildroot] [PATCH 1/1] gnutls: fix libz autodetection failure Antoine Pierlot-Garcin
@ 2014-02-04 16:58 ` Arnout Vandecappelle
  2014-02-04 19:00 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2014-02-04 16:58 UTC (permalink / raw)
  To: buildroot

On 04/02/14 15:57, Antoine Pierlot-Garcin wrote:
> The configure script finds libz in the distribution libraries, which causes
> zlib support to be dropped from the cross-compiled GnuTLS.
> 
> Signed-off-by: Antoine Pierlot-Garcin <antoine@bokbox.com>

Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

 I had noticed the -L/usr/lib in one of the link commands but didn't
worry about it at the time :-)

 Regards,
 Arnout

> ---
>  package/gnutls/gnutls.mk | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/package/gnutls/gnutls.mk b/package/gnutls/gnutls.mk
> index 73b525d..c0bd778 100644
> --- a/package/gnutls/gnutls.mk
> +++ b/package/gnutls/gnutls.mk
> @@ -28,8 +28,9 @@ GNUTLS_CONF_ENV = gl_cv_socket_ipv6=$(if $(BR2_INET_IPV6),yes,no) \
>  	gl_cv_func_gettimeofday_clobber=no
>  GNUTLS_INSTALL_STAGING = YES
>  
> -# libpthread autodetection poisons the linkpath
> +# libpthread and libz autodetection poison the linkpath
>  GNUTLS_CONF_OPT += $(if $(BR2_TOOLCHAIN_HAS_THREADS),--with-libpthread-prefix=$(STAGING_DIR)/usr)
> +GNUTLS_CONF_OPT += $(if $(BR2_PACKAGE_ZLIB),--with-libz-prefix=$(STAGING_DIR)/usr)
>  
>  # gnutls needs libregex, but pcre can be used too
>  # The check isn't cross-compile friendly
> 


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] gnutls: fix libz autodetection failure
  2014-02-04 14:57 [Buildroot] [PATCH 1/1] gnutls: fix libz autodetection failure Antoine Pierlot-Garcin
  2014-02-04 16:58 ` Arnout Vandecappelle
@ 2014-02-04 19:00 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2014-02-04 19:00 UTC (permalink / raw)
  To: buildroot

>>>>> "Antoine" == Antoine Pierlot-Garcin <antoine@bokbox.com> writes:

 > The configure script finds libz in the distribution libraries, which causes
 > zlib support to be dropped from the cross-compiled GnuTLS.

 > Signed-off-by: Antoine Pierlot-Garcin <antoine@bokbox.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-04 19:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-04 14:57 [Buildroot] [PATCH 1/1] gnutls: fix libz autodetection failure Antoine Pierlot-Garcin
2014-02-04 16:58 ` Arnout Vandecappelle
2014-02-04 19:00 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox