Welcome! Log In Create A New Profile

Advanced

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

Sergey Kandaurov
March 27, 2024 01:48PM
details: https://hg.nginx.org/nginx/rev/fb989e24c60a
branches:
changeset: 9230:fb989e24c60a
user: Sergey Kandaurov <pluknet@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
Subject Author Views Posted

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

Sergey Kandaurov 124 March 27, 2024 01:48PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 157
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready