aboutsummaryrefslogtreecommitdiff
path: root/doc/build-unix.md
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2023-01-06 09:14:02 +0000
committerfanquake <fanquake@gmail.com>2023-01-18 16:59:02 +0000
commit44f3c7de21fd86343a2427d2e864ea2001499c5e (patch)
treede06264cc613df76137026c340ad0e2beb54330d /doc/build-unix.md
parent14ce84388f02564c9e6d3cbd8e50aa85dbc1428b (diff)
contrib: remove install_db4.sh
Now that we can build a bdb-only depends prefix, there is no need to maintain a bdb-building bash script, that does the same things as depends, except worse, as it's missing patches and workarounds. i.e #26623.
Diffstat (limited to 'doc/build-unix.md')
-rw-r--r--doc/build-unix.md22
1 files changed, 13 insertions, 9 deletions
diff --git a/doc/build-unix.md b/doc/build-unix.md
index 874015707a..077e278afc 100644
--- a/doc/build-unix.md
+++ b/doc/build-unix.md
@@ -197,17 +197,21 @@ Berkeley DB
-----------
The legacy wallet uses Berkeley DB. To ensure backwards compatibility it is
-recommended to use Berkeley DB 4.8. If you have to build it yourself, you can
-use [the installation script included in contrib/](/contrib/install_db4.sh)
-like so:
-
-```shell
-./contrib/install_db4.sh `pwd`
+recommended to use Berkeley DB 4.8. If you have to build it yourself, and don't
+want to use any other libraries built in depends, you can do:
+```bash
+make -C depends NO_BOOST=1 NO_LIBEVENT=1 NO_QT=1 NO_SQLITE=1 NO_NATPMP=1 NO_UPNP=1 NO_ZMQ=1 NO_USDT=1
+...
+to: /path/to/bitcoin/depends/x86_64-pc-linux-gnu
```
+and configure using the following:
+```bash
+export BDB_PREFIX="/path/to/bitcoin/depends/x86_64-pc-linux-gnu"
-from the root of the repository.
-
-Otherwise, you can build Bitcoin Core from self-compiled [depends](/depends/README.md).
+./configure \
+ BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" \
+ BDB_CFLAGS="-I${BDB_PREFIX}/include"
+```
**Note**: You only need Berkeley DB if the legacy wallet is enabled (see [*Disable-wallet mode*](#disable-wallet-mode)).