details:   https://hg.nginx.org/nginx/rev/fb989e24c60a
branches:  
changeset: 9230:fb989e24c60a
user:      Sergey Kandaurov <pluk...@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
 
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel

Reply via email to