From 818f98da1c46785bc23a99efff653febb1e35ac2 Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Mon, 26 Feb 2024 20:00:38 +0000 Subject: [PATCH] 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. --- auto/os/linux | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/auto/os/linux b/auto/os/linux index 02dcaf2905..bc0556b3a1 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