aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2015-04-07 14:27:37 -0400
committerThomas Winget <tewinget@gmail.com>2015-04-07 15:02:20 -0400
commit9519526224e02618313f5dff23de62923de55984 (patch)
tree8ed0f8116451bbecc3d00917722aecfe89b7e7c0 /src/cryptonote_core
parentMerge upstream into blockchain (diff)
downloadmonero-9519526224e02618313f5dff23de62923de55984.tar.xz
Only compile BerkeleyDB as an option in non-static
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index 7864b55c8..38c009ca8 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -46,7 +46,9 @@ using namespace epee;
#include "cryptonote_core/checkpoints_create.h"
#include "blockchain_db/blockchain_db.h"
#include "blockchain_db/lmdb/db_lmdb.h"
+#ifndef STATICLIB
#include "blockchain_db/berkeleydb/db_bdb.h"
+#endif
DISABLE_VS_WARNINGS(4355)
@@ -207,7 +209,12 @@ namespace cryptonote
}
else if (db_type == "berkeley")
{
+#ifndef STATICLIB
db = new BlockchainBDB();
+#else
+ LOG_ERROR("BlockchainBDB not supported on STATIC builds");
+ return false;
+#endif
}
else
{