From: Igor Sysoev Date: Wed, 10 Jan 2007 15:21:44 +0000 (+0000) Subject: do not build OpenSSL with threads, if they are not used X-Git-Tag: release-0.5.7~28 X-Git-Url: http://git.kaiwu.me/%7B@url%7D?a=commitdiff_plain;h=673382f2aaf790f3a7bc6bbe88be89be0eb09534;p=nginx.git do not build OpenSSL with threads, if they are not used --- diff --git a/auto/lib/openssl/make b/auto/lib/openssl/make index 31e15dc4d..7da0d8dc1 100644 --- a/auto/lib/openssl/make +++ b/auto/lib/openssl/make @@ -8,9 +8,10 @@ else NGX_OPENSSL_CONFIG="./config" fi -if test -n "$USE_THREADS"; then - NGX_OPENSSL_CONFIG="$NGX_OPENSSL_CONFIG threads" -fi +case $USE_THREADS in + NO) NGX_OPENSSL_CONFIG="$NGX_OPENSSL_CONFIG no-threads" ;; + *) NGX_OPENSSL_CONFIG="$NGX_OPENSSL_CONFIG threads" ;; +esac case "$NGX_PLATFORM" in *)