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.
This commit is contained in:
Sergey Kandaurov 2024-02-26 20:00:38 +00:00
parent eff2ea1d69
commit 818f98da1c

View File

@ -228,6 +228,10 @@ ngx_feature_test="struct crypt_data cd;
crypt_r(\"key\", \"salt\", &cd);" crypt_r(\"key\", \"salt\", &cd);"
. auto/feature . auto/feature
if [ $ngx_found = yes ]; then
CRYPT_LIB="-lcrypt"
fi
ngx_include="sys/vfs.h"; . auto/include ngx_include="sys/vfs.h"; . auto/include