@@ -40,6 +40,7 @@ option(BUILD_DAEMON "Build bitcoind executable." ON)
40
40
option (BUILD_CLI "Build bitcoin-cli executable." ON )
41
41
option (BUILD_TX "Build bitcoin-tx executable." ON )
42
42
option (BUILD_UTIL "Build bitcoin-util executable." ON )
43
+ option (BUILD_BITCOINCONSENSUS_LIB "Build bitcoinconsensus library." ON )
43
44
option (ASM "Use assembly routines." ON )
44
45
45
46
option (ENABLE_WALLET "Enable wallet." ON )
@@ -255,6 +256,11 @@ if(HARDENING)
255
256
try_append_cxx_flags("-fcf-protection=full" TARGET hardening)
256
257
257
258
if (MINGW)
259
+ add_library (link_ssp INTERFACE )
260
+ target_link_libraries (link_ssp INTERFACE
261
+ $<$<BOOL :${BUILD_SHARED_LIBS} >:ssp>
262
+ )
263
+
258
264
# stack-clash-protection doesn't compile with GCC 10 and earlier.
259
265
# In any case, it is a no-op for Windows.
260
266
# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90458 for more details.
@@ -300,6 +306,10 @@ if(WERROR)
300
306
unset (werror_flag)
301
307
endif ()
302
308
309
+ if (BUILD_BITCOINCONSENSUS_LIB)
310
+ set (HAVE_CONSENSUS_LIB ON )
311
+ endif ()
312
+
303
313
find_package (Python3 3.9 COMPONENTS Interpreter)
304
314
set (PYTHON_COMMAND ${Python3_EXECUTABLE} )
305
315
@@ -320,6 +330,13 @@ message(" bitcoin-cli ......................... ${BUILD_CLI}")
320
330
message (" bitcoin-tx .......................... ${BUILD_TX} " )
321
331
message (" bitcoin-util ........................ ${BUILD_UTIL} " )
322
332
message (" bitcoin-wallet ...................... ${BUILD_WALLET_TOOL} " )
333
+ message ("Libraries:" )
334
+ if (BUILD_SHARED_LIBS )
335
+ message (" library type ........................ Shared" )
336
+ else ()
337
+ message (" library type ........................ Static" )
338
+ endif ()
339
+ message (" libbitcoinconsensus ................. ${BUILD_BITCOINCONSENSUS_LIB} " )
323
340
message ("Wallet support:" )
324
341
message (" SQLite, descriptor wallets .......... ${WITH_SQLITE} " )
325
342
message (" Berkeley DB, legacy wallets ......... ${WITH_BDB} " )
0 commit comments