File superbitcoin-cmake.patch of Package superbitcoin
--- CMakeLists.txt 2018-11-29 21:25:50.307968871 +0100
+++ CMakeLists.txt 2019-03-27 15:47:55.393027950 +0100
@@ -56,9 +56,10 @@
chrono
unit_test_framework
context
+ random
locale)
#SET( Boost_USE_STATIC_LIBS ON CACHE STRING "ON or OFF" )
-SET( Boost_USE_STATIC_LIBS ON)
+#SET( Boost_USE_STATIC_LIBS ON)
FIND_PACKAGE(Boost 1.54 REQUIRED COMPONENTS ${BOOST_COMPONENTS})
# For Boost 1.53 on windows, coroutine was not in BOOST_LIBRARYDIR and do not need it to build, but if boost versin >= 1.54, find coroutine otherwise will cause link errors
--- src/sbtcd/CMakeLists.txt 2018-11-29 21:25:50.479968866 +0100
+++ src/sbtcd/CMakeLists.txt 2019-03-27 15:50:49.866019805 +0100
@@ -15,10 +15,10 @@
target_link_libraries(sbtcd
- libboost_random.a ${Secp256k1_LIBRARY} contract-api eventmanager libboost_random.a contract libboost_random.a ${Secp256k1_LIBRARY} base chaincontrol
- compat config libboost_random.a contract libboost_random.a p2p framework ${Secp256k1_LIBRARY} contract-api ${Boost_LIBRARIES} contract ${Boost_LIBRARIES} mempool miner rpc sbtccore univalue utils wallet
- ${EVENT_LIBRARIES} ${LOG4CPP_LIBRARYS} libevent_pthreads.a ${Boost_LIBRARIES} miniupnpc ${OPENSSL_LIBRARIES}
- ${LIBDB_CXX_LIBRARIES} ${LEVELDB_LIBRARIES} libmemenv.a ${Secp256k1_LIBRARY} ${LIB_FILE}
+ ${Secp256k1_LIBRARY} contract-api eventmanager contract ${Secp256k1_LIBRARY} base chaincontrol
+ compat config contract p2p framework ${Secp256k1_LIBRARY} contract-api ${Boost_LIBRARIES} contract ${Boost_LIBRARIES} mempool miner rpc sbtccore univalue utils wallet
+ ${EVENT_LIBRARIES} ${LOG4CPP_LIBRARYS} libevent_pthreads.so ${Boost_LIBRARIES} miniupnpc ${OPENSSL_LIBRARIES}
+ ${LIBDB_CXX_LIBRARIES} ${LEVELDB_LIBRARIES} ${Secp256k1_LIBRARY} ${LIB_FILE}
)
--- src/sbtc-cli/CMakeLists.txt 2018-11-29 21:25:50.431968867 +0100
+++ src/sbtc-cli/CMakeLists.txt 2019-03-27 15:51:29.210018657 +0100
@@ -12,8 +12,8 @@
target_link_libraries(sbtc-cli
- libboost_random.a ${Secp256k1_LIBRARY} ${Secp256k1_LIBRARY} contract-api eventmanager ${Secp256k1_LIBRARY} libboost_random.a contract libboost_random.a ${Secp256k1_LIBRARY} base
- compat config libboost_random.a contract libboost_random.a sbtccore mempool chaincontrol utils p2p framework ${Secp256k1_LIBRARY} contract-api ${Boost_LIBRARIES} contract ${Boost_LIBRARIES} miner rpc univalue wallet
- ${EVENT_LIBRARIES} ${LOG4CPP_LIBRARYS} libevent_pthreads.a ${Boost_LIBRARIES} miniupnpc ${OPENSSL_LIBRARIES}
- ${LIBDB_CXX_LIBRARIES} ${LEVELDB_LIBRARIES} libmemenv.a ${Secp256k1_LIBRARY} ${LIB_FILE}
+ ${Secp256k1_LIBRARY} ${Secp256k1_LIBRARY} contract-api eventmanager ${Secp256k1_LIBRARY} contract ${Secp256k1_LIBRARY} base
+ compat config contract sbtccore mempool chaincontrol utils p2p framework ${Secp256k1_LIBRARY} contract-api ${Boost_LIBRARIES} contract ${Boost_LIBRARIES} miner rpc univalue wallet
+ ${EVENT_LIBRARIES} ${LOG4CPP_LIBRARYS} libevent_pthreads.so ${Boost_LIBRARIES} miniupnpc ${OPENSSL_LIBRARIES}
+ ${LIBDB_CXX_LIBRARIES} ${LEVELDB_LIBRARIES} ${Secp256k1_LIBRARY} ${LIB_FILE}
)
--- src/sbtc-tx/CMakeLists.txt 2018-11-29 21:25:50.431968867 +0100
+++ src/sbtc-tx/CMakeLists.txt 2019-03-27 15:52:01.786017706 +0100
@@ -15,8 +15,8 @@
target_link_libraries(sbtc-tx
- libboost_random.a ${Secp256k1_LIBRARY} ${Secp256k1_LIBRARY} contract-api eventmanager ${Secp256k1_LIBRARY} libboost_random.a contract libboost_random.a ${Secp256k1_LIBRARY} base
- compat config libboost_random.a contract libboost_random.a sbtccore mempool chaincontrol utils p2p framework ${Secp256k1_LIBRARY} contract-api ${Boost_LIBRARIES} contract ${Boost_LIBRARIES} miner rpc univalue wallet
+ ${Secp256k1_LIBRARY} ${Secp256k1_LIBRARY} contract-api eventmanager ${Secp256k1_LIBRARY} contract ${Secp256k1_LIBRARY} base
+ compat config contract sbtccore mempool chaincontrol utils p2p framework ${Secp256k1_LIBRARY} contract-api ${Boost_LIBRARIES} contract ${Boost_LIBRARIES} miner rpc univalue wallet
${EVENT_LIBRARIES} ${LOG4CPP_LIBRARYS} libevent_pthreads.so ${Boost_LIBRARIES} miniupnpc ${OPENSSL_LIBRARIES}
- ${LIBDB_CXX_LIBRARIES} ${LEVELDB_LIBRARIES} libmemenv.a ${Secp256k1_LIBRARY} ${LIB_FILE}
+ ${LIBDB_CXX_LIBRARIES} ${LEVELDB_LIBRARIES} ${Secp256k1_LIBRARY} ${LIB_FILE}
)
--- src/p2p/CMakeLists.txt 2018-11-29 21:25:50.403968868 +0100
+++ src/p2p/CMakeLists.txt 2019-03-27 16:19:38.697061929 +0100
@@ -3,3 +3,4 @@
add_library(p2p ${sources} ${headers} )
+target_link_libraries(p2p eventmanager)