aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorKevin Kane <kkane@microsoft.com>2020-11-03 11:03:29 -0800
committerAndreas Schneider <asn@cryptomilk.org>2020-12-10 09:17:55 +0100
commit026879e9f0d766ebe651e6d3fd9809e243928391 (patch)
treeeacc4dd221ccb182c3930fee636ff75ca68e83b6 /include/libssh
parent4708fc3b105d661532e3526de890e2dd923a16ed (diff)
downloadlibssh-026879e9f0d766ebe651e6d3fd9809e243928391.tar.gz
libssh-026879e9f0d766ebe651e6d3fd9809e243928391.tar.xz
libssh-026879e9f0d766ebe651e6d3fd9809e243928391.zip
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>
Diffstat (limited to 'include/libssh')
0 files changed, 0 insertions, 0 deletions