aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2024-02-26 20:00:38 +0000
committerSergey Kandaurov <pluknet@nginx.com>2024-02-26 20:00:38 +0000
commit818f98da1c46785bc23a99efff653febb1e35ac2 (patch)
tree23e1bb8f621fdb4fc5d6317a88779c4ba57358ae
parenteff2ea1d69a589c5b0a6ddde9ff400ab43377c2f (diff)
downloadnginx-818f98da1c46785bc23a99efff653febb1e35ac2.tar.gz
nginx-818f98da1c46785bc23a99efff653febb1e35ac2.zip
Configure: fixed Linux crypt_r() test to add libcrypt.
Previously, the resulting binary was successfully linked because libcrypt was added in a separate test for crypt(). Patch by Piotr Sikora.
-rw-r--r--auto/os/linux4
1 files changed, 4 insertions, 0 deletions
diff --git a/auto/os/linux b/auto/os/linux
index 02dcaf290..bc0556b3a 100644
--- a/auto/os/linux
+++ b/auto/os/linux
@@ -228,6 +228,10 @@ ngx_feature_test="struct crypt_data cd;
crypt_r(\"key\", \"salt\", &cd);"
. auto/feature
+if [ $ngx_found = yes ]; then
+ CRYPT_LIB="-lcrypt"
+fi
+
ngx_include="sys/vfs.h"; . auto/include