Skip to content

Commit

Permalink
Configure: fixed Linux crypt_r() test to add libcrypt.
Browse files Browse the repository at this point in the history
Previously, the resulting binary was successfully linked
because libcrypt was added in a separate test for crypt().

Patch by Piotr Sikora.
  • Loading branch information
pluknet committed Feb 26, 2024
1 parent eff2ea1 commit 818f98d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions auto/os/linux
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 818f98d

Please sign in to comment.