From f4d126316457345fdf9d6868cda0a33bcf4368c6 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Fri, 29 Oct 2021 11:54:44 +0300 Subject: [PATCH] build, cmake: switch OPENSSL_CRYPTO_LIBRARY -> OPENSSL_CRYPTO_LIBRARIES MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit OPENSSL_CRYPTO_LIBRARY returns just the full path to libcrypto.a OPENSSL_CRYPTO_LIBRARIES returns also any other libraries required to fully link an executable with libcrypto.a. This can be -lpthread, or -ldl, or something else. The FindOpenSSL.cmake module does a good job of identifying these dependent libs, but the OPENSSL_CRYPTO_LIBRARIES variable must be used (same as using ZLIB_LIBRARIES). Signed-off-by: Alexandru Ardelean Reviewed-by: Petr Å tetiar --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e206a2..f406520 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,7 +62,7 @@ FW_UTIL(mkedimaximg "" "" "") FW_UTIL(mkfwimage "" "-Wextra -D_FILE_OFFSET_BITS=64" "${ZLIB_LIBRARIES}") FW_UTIL(mkfwimage2 "" "" "${ZLIB_LIBRARIES}") FW_UTIL(mkheader_gemtek "" "" "${ZLIB_LIBRARIES}") -FW_UTIL(mkhilinkfw "" "" "${OPENSSL_CRYPTO_LIBRARY}") +FW_UTIL(mkhilinkfw "" "" "${OPENSSL_CRYPTO_LIBRARIES}") FW_UTIL(mkmerakifw src/sha1.c "" "") FW_UTIL(mkmerakifw-old "" "" "") FW_UTIL(mkmylofw "" "" "") -- 2.30.2