diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -589,7 +589,7 @@ target_sources(bitcoin-wallet PRIVATE bitcoin-wallet-res.rc) endif() - target_link_libraries(bitcoin-wallet wallet-tool common util) + target_link_libraries(bitcoin-wallet wallet-tool server common util) add_to_symbols_check(bitcoin-wallet) add_to_security_check(bitcoin-wallet) diff --git a/src/Makefile.am b/src/Makefile.am --- a/src/Makefile.am +++ b/src/Makefile.am @@ -682,6 +682,7 @@ bitcoin_wallet_LDADD = \ $(LIBBITCOIN_WALLET_TOOL) \ $(LIBBITCOIN_WALLET) \ + $(LIBBITCOIN_SERVER) \ $(LIBBITCOIN_COMMON) \ $(LIBBITCOIN_CONSENSUS) \ $(LIBBITCOIN_UTIL) \ diff --git a/src/wallet/CMakeLists.txt b/src/wallet/CMakeLists.txt --- a/src/wallet/CMakeLists.txt +++ b/src/wallet/CMakeLists.txt @@ -30,7 +30,7 @@ walletutil.cpp ) -target_link_libraries(wallet script univalue Event::event BerkeleyDB::CXX) +target_link_libraries(wallet server script univalue Event::event BerkeleyDB::CXX) # wallet-tool library add_library(wallet-tool wallettool.cpp)