Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-01-10 18:21:44 +0300
committerIgor Sysoev <igor@sysoev.ru>2007-01-10 18:21:44 +0300
commit673382f2aaf790f3a7bc6bbe88be89be0eb09534 (patch)
treede409349e80273ac5b1568939926b2ed74b37098 /auto/lib/openssl
parent054f9b0a8ce539b2298693c5bcc4807e8e73c4b7 (diff)
do not build OpenSSL with threads, if they are not used
Diffstat (limited to 'auto/lib/openssl')
-rw-r--r--auto/lib/openssl/make7
1 files changed, 4 insertions, 3 deletions
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
*)