@@ -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 )
@@ -258,6 +259,11 @@ if(HARDENING)
258
259
try_append_cxx_flags("-fcf-protection=full" TARGET hardening)
259
260
260
261
if (MINGW)
262
+ add_library (link_ssp INTERFACE )
263
+ target_link_libraries (link_ssp INTERFACE
264
+ $<$<BOOL :${BUILD_SHARED_LIBS} >:ssp>
265
+ )
266
+
261
267
# stack-clash-protection doesn't compile with GCC 10 and earlier.
262
268
# In any case, it is a no-op for Windows.
263
269
# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90458 for more details.
@@ -303,6 +309,10 @@ if(WERROR)
303
309
unset (werror_flag)
304
310
endif ()
305
311
312
+ if (BUILD_BITCOINCONSENSUS_LIB)
313
+ set (HAVE_CONSENSUS_LIB ON )
314
+ endif ()
315
+
306
316
find_package (Python3 3.9 COMPONENTS Interpreter)
307
317
set (PYTHON_COMMAND ${Python3_EXECUTABLE} )
308
318
@@ -323,6 +333,13 @@ message(" bitcoin-cli ......................... ${BUILD_CLI}")
323
333
message (" bitcoin-tx .......................... ${BUILD_TX} " )
324
334
message (" bitcoin-util ........................ ${BUILD_UTIL} " )
325
335
message (" 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} " )
326
343
message ("Wallet support:" )
327
344
message (" SQLite, descriptor wallets .......... ${WITH_SQLITE} " )
328
345
message (" Berkeley DB, legacy wallets ......... ${WITH_BDB} " )
0 commit comments