diff options
author | fanquake <fanquake@gmail.com> | 2022-03-24 10:53:04 +0000 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-03-24 10:53:04 +0000 |
commit | 7ac7198bbd086ad905d2a217fe64d2ebb54420ab (patch) | |
tree | fdde53f974270d522157cbd6b221e7ecf03aa730 /doc | |
parent | 98e9d8e8e2e3e65e6f1e14be26457a9f9090c092 (diff) | |
download | bitcoin-7ac7198bbd086ad905d2a217fe64d2ebb54420ab.tar.xz |
doc: mention that BDB is for the legacy wallet in build-netbsd.md
Re-order legacy and descriptor wallet section.
Add an additional configure example.
NetBSD version of #23446.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/build-netbsd.md | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/doc/build-netbsd.md b/doc/build-netbsd.md index 762406bf6b..ba9a80f83b 100644 --- a/doc/build-netbsd.md +++ b/doc/build-netbsd.md @@ -27,15 +27,33 @@ git clone https://github.com/bitcoin/bitcoin.git See [dependencies.md](dependencies.md) for a complete overview. -### Building BerkeleyDB +### Building Bitcoin Core + +**Important**: Use `gmake` (the non-GNU `make` will exit with an error). + +#### With descriptor wallet: + +The descriptor wallet uses `sqlite3`. You can install it using: +```bash +pkgin install sqlite3 +``` + +```bash +./autogen.sh +./configure --with-gui=no --without-bdb \ + CPPFLAGS="-I/usr/pkg/include" \ + LDFLAGS="-L/usr/pkg/lib" \ + BOOST_CPPFLAGS="-I/usr/pkg/include" \ + MAKE=gmake +``` -BerkeleyDB is only necessary for the wallet functionality. To skip this, pass -`--disable-wallet` to `./configure` and skip to the next section. +#### With legacy wallet: + +BerkeleyDB is use for legacy wallet functionality. It is recommended to use Berkeley DB 4.8. You cannot use the BerkeleyDB library -from ports, for the same reason as boost above (g++/libstd++ incompatibility). -If you have to build it yourself, you can use [the installation script included -in contrib/](/contrib/install_db4.sh) like so: +from ports. +You can use [the installation script included in contrib/](/contrib/install_db4.sh) like so: ```bash ./contrib/install_db4.sh `pwd` @@ -47,11 +65,6 @@ from the root of the repository. Then set `BDB_PREFIX` for the next section: export BDB_PREFIX="$PWD/db4" ``` -### Building Bitcoin Core - -**Important**: Use `gmake` (the non-GNU `make` will exit with an error). - -With wallet: ```bash ./autogen.sh ./configure --with-gui=no CPPFLAGS="-I/usr/pkg/include" \ @@ -62,7 +75,7 @@ With wallet: MAKE=gmake ``` -Without wallet: +#### Without wallet: ```bash ./autogen.sh ./configure --with-gui=no --disable-wallet \ |