From 43becdba4c021b419914a859bcff463350aac426 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Fri, 22 Nov 2013 22:38:58 +0100 Subject: [PATCH] openssl: only build threads configuration if toolchain has pthread support Gets rid of a large number of warnings (and suboptimal code?): ..sysroot/usr/include/features.h:209:5: warning: #warning requested reentrant code, but thread support was disabled [-Wcpp] Signed-off-by: Peter Korsgaard --- package/openssl/openssl.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/openssl/openssl.mk b/package/openssl/openssl.mk index 4b8b0a4a1b..5416141168 100644 --- a/package/openssl/openssl.mk +++ b/package/openssl/openssl.mk @@ -73,7 +73,7 @@ define OPENSSL_CONFIGURE_CMDS --prefix=/usr \ --openssldir=/etc/ssl \ --libdir=/lib \ - threads \ + $(if $(BR2_TOOLCHAIN_HAS_THREADS),threads,no-threads) \ $(if $(BR2_PREFER_STATIC_LIB),no-shared,shared) \ no-idea \ no-rc5 \ -- 2.30.2