[nginx] Configure: fixed Linux crypt_r() test to add libcrypt.

Sergey Kandaurov pluknet at nginx.com
Wed Mar 27 17:46:38 UTC 2024


details:   https://hg.nginx.org/nginx/rev/fb989e24c60a
branches:  
changeset: 9230:fb989e24c60a
user:      Sergey Kandaurov <pluknet at nginx.com>
date:      Mon Feb 26 20:00:38 2024 +0000
description:
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.

diffstat:

 auto/os/linux |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 000e2ded0a51 -r fb989e24c60a auto/os/linux
--- a/auto/os/linux	Mon Feb 26 20:00:35 2024 +0000
+++ b/auto/os/linux	Mon Feb 26 20:00:38 2024 +0000
@@ -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
 


More information about the nginx-devel mailing list