Browse Source

add ENABLE LABS global var to build cclib correctly with start.sh.

warmup
blackjok3r 5 years ago
parent
commit
f08a7d2d03
  1. 5
      src/cc/makecclib
  2. 8
      src/wallet/db.h

5
src/cc/makecclib

@ -7,7 +7,10 @@ make -f Makefile_rogue
rm ../libcc.so
cp librogue.so ../libcc.so
exit 0
if [ "${LABS_FLAGS}" = "ENABLE_LABS" ]
then
exit
fi
echo sudoku/musig/dilithium
gcc -O3 -std=c++11 -I../secp256k1/include -I../univalue/include -I../cryptoconditions/include -I../cryptoconditions/src -I../cryptoconditions/src/asn -I.. -I. -fPIC -shared -c -o sudokucc.so cclib.cpp

8
src/wallet/db.h

@ -33,9 +33,11 @@
#include <boost/filesystem/path.hpp>
// If CCLIB fails to compile with this, use the one below.
//#include <db_cxx.h>
#include "../depends/x86_64-unknown-linux-gnu/include/db_cxx.h"
#ifdef BUILD_ROGUE
#include "../depends/x86_64-unknown-linux-gnu/include/db_cxx.h"
#else
#include <db_cxx.h>
#endif
extern unsigned int nWalletDBUpdated;

Loading…
Cancel
Save