openssl:enable openssl multiple threads by default

This commit is contained in:
coolsnowwolf 2018-10-22 15:18:31 +08:00
parent 76b6c8c1e6
commit 20d6f26fc8
2 changed files with 13 additions and 0 deletions

View File

@ -50,6 +50,12 @@ config OPENSSL_ENGINE_DIGEST
depends on OPENSSL_ENGINE_CRYPTO
prompt "Digests acceleration support"
config OPENSSL_THREADS
bool
prompt "Threading support"
default y
select PACKAGE_libpthread
config OPENSSL_HARDWARE_SUPPORT
bool
default n

View File

@ -36,6 +36,7 @@ PKG_CONFIG_DEPENDS:= \
CONFIG_OPENSSL_WITH_EC2M \
CONFIG_OPENSSL_WITH_SSL3 \
CONFIG_OPENSSL_HARDWARE_SUPPORT \
CONFIG_OPENSSL_THREADS \
CONFIG_OPENSSL_WITH_DEPRECATED \
CONFIG_OPENSSL_WITH_DTLS \
CONFIG_OPENSSL_WITH_COMPRESSION \
@ -130,6 +131,12 @@ ifndef CONFIG_OPENSSL_HARDWARE_SUPPORT
OPENSSL_OPTIONS += no-hw
endif
ifdef CONFIG_OPENSSL_THREADS
OPENSSL_OPTIONS += threads
else
OPENSSL_OPTIONS += no-threads
endif
ifndef CONFIG_OPENSSL_WITH_DEPRECATED
OPENSSL_OPTIONS += no-deprecated
endif