dev-libs/mbedtls: add x86_cpu_features:sse2

This commit is contained in:
Julian Ospald 2016-02-21 18:40:45 +01:00
parent 9920c61659
commit 317c7685d3
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -15,6 +15,8 @@ MYOPTIONS="
havege [[ description = [ Enable the HAVEGE random generator, havege [[ description = [ Enable the HAVEGE random generator,
not suitable for virtualized environments! ] ]] not suitable for virtualized environments! ] ]]
threads threads
x86_cpu_features:
sse2
" "
DEPENDENCIES=" DEPENDENCIES="
@ -48,6 +50,7 @@ enable_mbedtls_option() {
} }
src_prepare() { src_prepare() {
option x86_cpu_features:sse2 && enable_mbedtls_option MBEDTLS_HAVE_SSE2
enable_mbedtls_option MBEDTLS_ZLIB_SUPPORT enable_mbedtls_option MBEDTLS_ZLIB_SUPPORT
option havege && enable_mbedtls_option MBEDTLS_HAVEGE_C option havege && enable_mbedtls_option MBEDTLS_HAVEGE_C
option threads && enable_mbedtls_option MBEDTLS_THREADING_C option threads && enable_mbedtls_option MBEDTLS_THREADING_C