summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2018-08-04 16:48:20 +0000
committerYann Ylavic <ylavic@apache.org>2018-08-04 16:48:20 +0000
commit5a1b9a92dad639eea47c78e28bae25eafa014331 (patch)
treeaaa10b6cb5b950d8802b5292d318782f47dfa02c /build
parent8ca89dd5ecf6de93c260d4d9d575b7b59a1f978b (diff)
downloadapr-5a1b9a92dad639eea47c78e28bae25eafa014331.tar.gz
crypto: follow up to r1833421.
Link with OpenSSL's libssl in addition to libcrypto, so that we can initialize and deinitialize them together (libssl can't do this independently). Also, for older OpenSSL versions, initialize the threading locks needed by the lib at runtime. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1837430 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rw-r--r--build/crypto.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/build/crypto.m4 b/build/crypto.m4
index d4719b34f..1930452da 100644
--- a/build/crypto.m4
+++ b/build/crypto.m4
@@ -132,7 +132,7 @@ AC_DEFUN([APU_CHECK_CRYPTO_OPENSSL], [
dnl Since we have already done the AC_CHECK_LIB tests, if we have it,
dnl we know the library is there.
if test "$apu_have_openssl" = "1"; then
- APR_ADDTO(LDADD_crypto_openssl, [$openssl_LDFLAGS -lcrypto])
+ APR_ADDTO(LDADD_crypto_openssl, [$openssl_LDFLAGS -lssl -lcrypto])
apu_have_crypto=1
AC_MSG_CHECKING([for const input buffers in OpenSSL])