From 311a423bd8642d4c507b2997990522715e590eca Mon Sep 17 00:00:00 2001 From: fanquake Date: Fri, 5 Jan 2018 08:36:42 +0800 Subject: [PATCH 1/2] [contrib] Use BDB_LIBS/CFLAGS in install_db4 --- contrib/install_db4.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/install_db4.sh b/contrib/install_db4.sh index b57ade139..1adfd0767 100755 --- a/contrib/install_db4.sh +++ b/contrib/install_db4.sh @@ -83,4 +83,4 @@ echo echo 'When compiling bitcoind, run `./configure` in the following way:' echo echo " export BDB_PREFIX='${BDB_PREFIX}'" -echo ' ./configure LDFLAGS="-L${BDB_PREFIX}/lib/" CPPFLAGS="-I${BDB_PREFIX}/include/" ...' +echo ' ./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" ...' From f3196a03aa99702f657d80bf2b7e0415fcb861b5 Mon Sep 17 00:00:00 2001 From: fanquake Date: Fri, 5 Jan 2018 08:37:22 +0800 Subject: [PATCH 2/2] [contrib] Add --disable-replication to install_db4 --- contrib/install_db4.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/install_db4.sh b/contrib/install_db4.sh index 1adfd0767..d315a7d3b 100755 --- a/contrib/install_db4.sh +++ b/contrib/install_db4.sh @@ -72,7 +72,7 @@ patch -p2 < clang.patch cd build_unix/ "${BDB_PREFIX}/${BDB_VERSION}/dist/configure" \ - --enable-cxx --disable-shared --with-pic --prefix="${BDB_PREFIX}" \ + --enable-cxx --disable-shared --disable-replication --with-pic --prefix="${BDB_PREFIX}" \ "${@}" make install