@@ -40,6 +40,7 @@ option(BUILD_DAEMON "Build bitcoind executable." ON)
4040option (BUILD_CLI "Build bitcoin-cli executable." ON )
4141option (BUILD_TX "Build bitcoin-tx executable." ON )
4242option (BUILD_UTIL "Build bitcoin-util executable." ON )
43+ option (BUILD_BITCOINCONSENSUS_LIB "Build bitcoinconsensus library." ON )
4344option (ASM "Use assembly routines." ON )
4445
4546option (ENABLE_WALLET "Enable wallet." ON )
@@ -255,6 +256,11 @@ if(HARDENING)
255256 try_append_cxx_flags("-fcf-protection=full" TARGET hardening)
256257
257258 if (MINGW)
259+ add_library (link_ssp INTERFACE )
260+ target_link_libraries (link_ssp INTERFACE
261+ $<$<BOOL :${BUILD_SHARED_LIBS} >:ssp>
262+ )
263+
258264 # stack-clash-protection doesn't compile with GCC 10 and earlier.
259265 # In any case, it is a no-op for Windows.
260266 # See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90458 for more details.
@@ -300,6 +306,10 @@ if(WERROR)
300306 unset (werror_flag)
301307endif ()
302308
309+ if (BUILD_BITCOINCONSENSUS_LIB)
310+ set (HAVE_CONSENSUS_LIB ON )
311+ endif ()
312+
303313find_package (Python3 3.9 COMPONENTS Interpreter)
304314set (PYTHON_COMMAND ${Python3_EXECUTABLE} )
305315
@@ -320,6 +330,15 @@ message(" bitcoin-cli ......................... ${BUILD_CLI}")
320330message (" bitcoin-tx .......................... ${BUILD_TX} " )
321331message (" bitcoin-util ........................ ${BUILD_UTIL} " )
322332message (" bitcoin-wallet ...................... ${BUILD_WALLET_TOOL} " )
333+ message ("Libraries:" )
334+ if (BUILD_SHARED_LIBS )
335+ set (library_type "Shared" )
336+ else ()
337+ set (library_type "Static" )
338+ endif ()
339+ message (" library type ........................ ${library_type} " )
340+ unset (library_type)
341+ message (" libbitcoinconsensus ................. ${BUILD_BITCOINCONSENSUS_LIB} " )
323342message ("Wallet support:" )
324343message (" SQLite, descriptor wallets .......... ${WITH_SQLITE} " )
325344message (" Berkeley DB, legacy wallets ......... ${WITH_BDB} " )
0 commit comments