@@ -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 )
@@ -258,6 +259,11 @@ if(HARDENING)
258259 try_append_cxx_flags("-fcf-protection=full" TARGET hardening)
259260
260261 if (MINGW)
262+ add_library (link_ssp INTERFACE )
263+ target_link_libraries (link_ssp INTERFACE
264+ $<$<BOOL :${BUILD_SHARED_LIBS} >:ssp>
265+ )
266+
261267 # stack-clash-protection doesn't compile with GCC 10 and earlier.
262268 # In any case, it is a no-op for Windows.
263269 # See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90458 for more details.
@@ -303,6 +309,10 @@ if(WERROR)
303309 unset (werror_flag)
304310endif ()
305311
312+ if (BUILD_BITCOINCONSENSUS_LIB)
313+ set (HAVE_CONSENSUS_LIB ON )
314+ endif ()
315+
306316find_package (Python3 3.9 COMPONENTS Interpreter)
307317set (PYTHON_COMMAND ${Python3_EXECUTABLE} )
308318
@@ -323,6 +333,13 @@ message(" bitcoin-cli ......................... ${BUILD_CLI}")
323333message (" bitcoin-tx .......................... ${BUILD_TX} " )
324334message (" bitcoin-util ........................ ${BUILD_UTIL} " )
325335message (" bitcoin-wallet ...................... ${BUILD_WALLET_TOOL} " )
336+ message ("Libraries:" )
337+ if (BUILD_SHARED_LIBS )
338+ message (" library type ........................ Shared" )
339+ else ()
340+ message (" library type ........................ Static" )
341+ endif ()
342+ message (" libbitcoinconsensus ................. ${BUILD_BITCOINCONSENSUS_LIB} " )
326343message ("Wallet support:" )
327344message (" SQLite, descriptor wallets .......... ${WITH_SQLITE} " )
328345message (" Berkeley DB, legacy wallets ......... ${WITH_BDB} " )
0 commit comments