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

This commit is contained in:
blackjok3r
2019-05-27 17:58:23 +08:00
parent 1c6723b9f1
commit f08a7d2d03
2 changed files with 9 additions and 4 deletions

View File

@@ -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

View File

@@ -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;