From: Sergey Kandaurov Date: Mon, 26 Feb 2024 20:00:38 +0000 (+0000) Subject: Configure: fixed Linux crypt_r() test to add libcrypt. X-Git-Tag: release-1.25.5~8 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=818f98da1c46785bc23a99efff653febb1e35ac2;p=nginx.git 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. --- 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