Skip to content

Commit

Permalink
Improved discovery of OpenSSL libraries.
Browse files Browse the repository at this point in the history
Trying to link again the library using --cc-opt and --ld-opt before
attempting to use the default.

This change is similar to 9e2e4d04dfc4 (0.7.1) made for PCRE.
  • Loading branch information
xeioex committed Dec 29, 2021
1 parent 506d45b commit dc20777
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion auto/openssl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [ $NJS_OPENSSL = YES ]; then
njs_feature_name=NJS_HAVE_OPENSSL
njs_feature_run=yes
njs_feature_incs=
njs_feature_libs="-lcrypto"
njs_feature_libs=""
njs_feature_test="#include <openssl/evp.h>

int main() {
Expand All @@ -24,6 +24,13 @@ if [ $NJS_OPENSSL = YES ]; then
}"
. auto/feature

if [ $njs_found = no ]; then
njs_feature="OpenSSL library -lcrypto"
njs_feature_libs="-lcrypto"

. auto/feature
fi


if [ $njs_found = yes ]; then
njs_feature="OpenSSL version"
Expand Down

0 comments on commit dc20777

Please sign in to comment.