summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2013-11-22 21:38:58 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2013-11-22 21:44:54 (GMT)
commit43becdba4c021b419914a859bcff463350aac426 (patch)
tree288fd3ea64b4f6d3fc713b3d513d1a32a83f24b0
parentb55e473e62cf6336de4a1ce368409df8e20e74f5 (diff)
downloadbuildroot-43becdba4c021b419914a859bcff463350aac426.tar.gz
buildroot-43becdba4c021b419914a859bcff463350aac426.tar.bz2
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 <peter@korsgaard.com>
-rw-r--r--package/openssl/openssl.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/openssl/openssl.mk b/package/openssl/openssl.mk
index 4b8b0a4..5416141 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 \