diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2024-02-26 20:00:38 +0000 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2024-02-26 20:00:38 +0000 |
commit | 818f98da1c46785bc23a99efff653febb1e35ac2 (patch) | |
tree | 23e1bb8f621fdb4fc5d6317a88779c4ba57358ae | |
parent | eff2ea1d69a589c5b0a6ddde9ff400ab43377c2f (diff) | |
download | nginx-818f98da1c46785bc23a99efff653febb1e35ac2.tar.gz nginx-818f98da1c46785bc23a99efff653febb1e35ac2.zip |
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.
-rw-r--r-- | auto/os/linux | 4 |
1 files changed, 4 insertions, 0 deletions
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 |