This is an automated email from the ASF dual-hosted git repository.

xiaofeng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new 58e7e2df Fix incorrect openssl dynamic library link order (#3159)
58e7e2df is described below

commit 58e7e2df72ef053c69dbced5adb2076a3bf5531e
Author: apocelipes <[email protected]>
AuthorDate: Thu Nov 20 21:41:20 2025 +0800

    Fix incorrect openssl dynamic library link order (#3159)
---
 CMakeLists.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 63f3ee06..06aee44c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -306,11 +306,12 @@ if(WITH_BORINGSSL)
     list(APPEND DYNAMIC_LIB ${BORINGSSL_SSL_LIBRARY})
     list(APPEND DYNAMIC_LIB ${BORINGSSL_CRYPTO_LIBRARY})
 else()
-    list(APPEND DYNAMIC_LIB ${OPENSSL_CRYPTO_LIBRARY})
     if(WITH_MESALINK)
+        list(APPEND DYNAMIC_LIB ${OPENSSL_CRYPTO_LIBRARY})
         list(APPEND DYNAMIC_LIB ${MESALINK_LIB})
     else()
         list(APPEND DYNAMIC_LIB ${OPENSSL_SSL_LIBRARY})
+        list(APPEND DYNAMIC_LIB ${OPENSSL_CRYPTO_LIBRARY})
     endif()
 endif()
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to