Files
libssh/src
Kevin Kane bd9a4e2498 cmake: Use OPENSSL_CRYPTO_LIBRARIES CMake variable when linking against OpenSSL
The build currently breaks when attempting to link libssh.so using a
statically-linked OpenSSL. -ldl and -lpthread are required when linking
a binary with the static libcrypto.a. The OPENSSL_CRYPTO_LIBRARY does
not include these dependencies when linking against static OpenSSL.
OPENSSL_CRYPTO_LIBRARIES contains the correct dependencies in both
static and shared configurations; -ldl and -lpthread are not required
when linking against shared libcrypto.so.

This change changes all uses of OPENSSL_CRYPTO_LIBRARY to
OPENSSL_CRYPTO_LIBRARIES to let the FindOpenSSL CMake module always
provide the correct libraries at link time.

Signed-off-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 026879e9f0)
2021-08-17 15:46:53 +02:00
..
2020-09-10 14:44:47 +02:00
2020-05-05 14:33:30 +02:00
2019-12-09 16:38:36 +01:00
2019-12-09 16:38:37 +01:00
2020-01-23 10:31:38 +01:00
2019-12-09 16:38:36 +01:00
2018-08-27 11:29:18 +02:00
2019-01-24 11:56:23 +01:00
2018-09-04 19:57:31 +02:00
2019-12-09 16:38:36 +01:00
2019-12-09 16:38:37 +01:00
2019-03-07 12:03:32 +01:00
2019-12-09 16:38:37 +01:00
2020-01-23 09:49:26 +01:00
2019-06-14 15:22:56 +02:00
2020-01-23 09:50:35 +01:00
2019-12-09 16:38:37 +01:00
2019-12-09 16:38:36 +01:00
2019-12-09 16:38:37 +01:00
2019-12-09 16:38:37 +01:00
2019-12-09 16:38:36 +01:00
2020-05-05 14:32:04 +02:00
2020-01-23 09:50:04 +01:00