From: Peter Korsgaard Date: Fri, 22 Nov 2013 21:38:58 +0000 (+0100) Subject: openssl: only build threads configuration if toolchain has pthread support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43becdba4c021b419914a859bcff463350aac426;p=buildroot.git 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 --- 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 \