]> git.kaiwu.me - nginx.git/commitdiff
Configure: fixed Linux crypt_r() test to add libcrypt.
authorSergey Kandaurov <pluknet@nginx.com>
Mon, 26 Feb 2024 20:00:38 +0000 (20:00 +0000)
committerSergey Kandaurov <pluknet@nginx.com>
Mon, 26 Feb 2024 20:00:38 +0000 (20:00 +0000)
Previously, the resulting binary was successfully linked
because libcrypt was added in a separate test for crypt().

Patch by Piotr Sikora.

auto/os/linux

index 02dcaf29054f2f40ae3d3c0e372e5eb3e3823adc..bc0556b3a12903d5c7f3a3c6c0474d0a8da3a80c 100644 (file)
@@ -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