From 673382f2aaf790f3a7bc6bbe88be89be0eb09534 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 10 Jan 2007 15:21:44 +0000 Subject: do not build OpenSSL with threads, if they are not used --- auto/lib/openssl/make | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'auto') 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 *) -- cgit