diff options
author | AgoraDesk / LocalMonero <31570671+LocalMonero@users.noreply.github.com> | 2022-09-12 23:39:19 +0800 |
---|---|---|
committer | AgoraDesk / LocalMonero <31570671+LocalMonero@users.noreply.github.com> | 2022-09-13 00:11:02 +0800 |
commit | f69adef4c15fc2d097a9be34f5d9c65a6d70a45b (patch) | |
tree | c4cbb92c9957181b521f0fba528335c8174ae4c4 | |
parent | Merge pull request #8554 (diff) | |
download | monero-f69adef4c15fc2d097a9be34f5d9c65a6d70a45b.tar.xz |
Fix static builds for Ubuntu 22.04
Link libbsd, libmd, libprotokit for ZMQ to fix static builds for Ubuntu 22.04
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b05c087cf..6ace6422d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1178,6 +1178,9 @@ find_library(NORM_LIBRARY norm) find_library(GSSAPI_LIBRARY gssapi_krb5) find_library(PROTOLIB_LIBRARY protolib) find_library(SODIUM_LIBRARY sodium) +find_library(BSD_LIBRARY bsd) +find_library(MD_LIBRARY md) +find_library(PROTOKIT_LIBRARY protokit) if(NOT ZMQ_INCLUDE_PATH) message(FATAL_ERROR "Could not find required header zmq.h") @@ -1200,6 +1203,15 @@ endif() if(SODIUM_LIBRARY) set(ZMQ_LIB "${ZMQ_LIB};${SODIUM_LIBRARY}") endif() +if(BSD_LIBRARY) + set(ZMQ_LIB "${ZMQ_LIB};${BSD_LIBRARY}") +endif() +if(MD_LIBRARY) + set(ZMQ_LIB "${ZMQ_LIB};${MD_LIBRARY}") +endif() +if(PROTOKIT_LIBRARY) + set(ZMQ_LIB "${ZMQ_LIB};${PROTOKIT_LIBRARY}") +endif() include(external/supercop/functions.cmake) # place after setting flags and before src directory inclusion add_subdirectory(contrib) |