aboutsummaryrefslogtreecommitdiff
path: root/package/mbedtls
diff options
context:
space:
mode:
authorGravatar Baruch Siach <baruch@tkos.co.il>2016-04-12 21:46:00 +0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-05-28 19:22:14 +0200
commit115e5ae9c90e5dfe83adc751e5353695f7ac5cd0 (patch)
tree6fcb9c1b858358544cb8f9cbd537b8ba3fd7711a /package/mbedtls
parent33499484e457018203023cdfdd5286478f2ae381 (diff)
downloadbuildroot-115e5ae9c90e5dfe83adc751e5353695f7ac5cd0.tar.gz
buildroot-115e5ae9c90e5dfe83adc751e5353695f7ac5cd0.tar.bz2
mbedtls: fix companion programs static build
Set LINK_WITH_PTHREAD to explicitly add pthread to the list of libraries. Fixes: http://autobuild.buildroot.net/results/e08/e087dfa2a6057b18209cd6adff2760026a9ca1db/ http://autobuild.buildroot.net/results/615/61565f1a88b7d6eea03a355ccf8dd3fe6585c4ab/ http://autobuild.buildroot.net/results/6b2/6b267b9cba37655e7d8e6d78821f96d9a8dd7d2e/ Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/mbedtls')
-rw-r--r--package/mbedtls/mbedtls.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/mbedtls/mbedtls.mk b/package/mbedtls/mbedtls.mk
index fe166e21f4..994a3f40a8 100644
--- a/package/mbedtls/mbedtls.mk
+++ b/package/mbedtls/mbedtls.mk
@@ -23,6 +23,9 @@ define MBEDTLS_ENABLE_THREADING
$(@D)/include/mbedtls/config.h
endef
MBEDTLS_POST_PATCH_HOOKS += MBEDTLS_ENABLE_THREADING
+ifeq ($(BR2_STATIC_LIBS),y)
+MBEDTLS_CONF_OPTS += -DLINK_WITH_PTHREAD=ON
+endif
endif
ifeq ($(BR2_STATIC_LIBS),y)