diff mbox

[1/2] gnutls: fix build failure related to pthreads

Message ID 1357138210-4455-1-git-send-email-gustavo@zacarias.com.ar
State Accepted
Commit 50e562bc4ab83128f093f44b34327f8c23782b06
Headers show

Commit Message

Gustavo Zacarias Jan. 2, 2013, 2:50 p.m. UTC
The pthreads autodetection posions the linkpath thus making other
distribution libraries to take precedence over the cross ones.
Leading to failures such as:
http://autobuild.buildroot.net/results/tmp/3f979d4e2186ee31012c332fedec9591890b0b77

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/gnutls/gnutls.mk |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Comments

Peter Korsgaard Jan. 2, 2013, 2:53 p.m. UTC | #1
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 Gustavo> The pthreads autodetection posions the linkpath thus making other

s/posions/poisons/

Committed both with that fixed, thanks.
diff mbox

Patch

diff --git a/package/gnutls/gnutls.mk b/package/gnutls/gnutls.mk
index 0166a74..1cbcf70 100644
--- a/package/gnutls/gnutls.mk
+++ b/package/gnutls/gnutls.mk
@@ -17,6 +17,9 @@  GNUTLS_CONF_ENV = gl_cv_socket_ipv6=$(if $(BR2_INET_IPV6),yes,no) \
 	gt_cv_c_wint_t=$(if $(BR2_USE_WCHAR),yes,no)
 GNUTLS_INSTALL_STAGING = YES
 
+# libpthread autodetection poisons the linkpath
+GNUTLS_CONF_OPT += $(if $(BR2_TOOLCHAIN_HAS_THREADS),--with-libpthread-prefix=$(STAGING_DIR)/usr)
+
 # Some examples in doc/examples use wchar
 define GNUTLS_DISABLE_DOCS
 	$(SED) 's/ doc / /' $(@D)/Makefile.in