Skip to content

Commit 9fb1ce2

Browse files
fanquakeknst
authored andcommitted
Merge bitcoin#24658: doc: mention that BDB is for the legacy wallet in build-netbsd.md
7ac7198 doc: mention that BDB is for the legacy wallet in build-netbsd.md (fanquake) Pull request description: Re-order legacy and descriptor wallet section. Add an additional configure example. NetBSD version of bitcoin#23446. ACKs for top commit: shaavan: ACK 7ac7198 Tree-SHA512: 5c8218424a6b12e9eee00b44dd93f9fe95fd9afa468563167feb255663720a84b55e75850985cfae3ca288a6a76e17c00ccce60b8180f92875eeaee2c9afa843
1 parent 356cefd commit 9fb1ce2

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

doc/build-netbsd.md

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,33 @@ git clone https://github.com/dashpay/dash.git
3030

3131
See [dependencies.md](dependencies.md) for a complete overview.
3232

33-
### Building BerkeleyDB
33+
### Building Dash Core
34+
35+
**Important**: Use `gmake` (the non-GNU `make` will exit with an error).
36+
37+
#### With descriptor wallet:
38+
39+
The descriptor wallet uses `sqlite3`. You can install it using:
40+
```bash
41+
pkgin install sqlite3
42+
```
43+
44+
```bash
45+
./autogen.sh
46+
./configure --with-gui=no --without-bdb \
47+
CPPFLAGS="-I/usr/pkg/include" \
48+
LDFLAGS="-L/usr/pkg/lib" \
49+
BOOST_CPPFLAGS="-I/usr/pkg/include" \
50+
MAKE=gmake
51+
```
3452

35-
BerkeleyDB is only necessary for the wallet functionality. To skip this, pass
36-
`--disable-wallet` to `./configure` and skip to the next section.
53+
#### With legacy wallet:
54+
55+
BerkeleyDB is use for legacy wallet functionality.
3756

3857
It is recommended to use Berkeley DB 4.8. You cannot use the BerkeleyDB library
39-
from ports, for the same reason as boost above (g++/libstd++ incompatibility).
40-
If you have to build it yourself, you can use [the installation script included
41-
in contrib/](/contrib/install_db4.sh) like so:
58+
from ports.
59+
You can use [the installation script included in contrib/](/contrib/install_db4.sh) like so:
4260

4361
```bash
4462
./contrib/install_db4.sh `pwd`
@@ -50,11 +68,6 @@ from the root of the repository. Then set `BDB_PREFIX` for the next section:
5068
export BDB_PREFIX="$PWD/db4"
5169
```
5270

53-
### Building Dash Core
54-
55-
**Important**: Use `gmake` (the non-GNU `make` will exit with an error).
56-
57-
With wallet:
5871
```bash
5972
./autogen.sh
6073
./configure --with-gui=no CPPFLAGS="-I/usr/pkg/include" \
@@ -65,7 +78,7 @@ With wallet:
6578
MAKE=gmake
6679
```
6780

68-
Without wallet:
81+
#### Without wallet:
6982
```bash
7083
./autogen.sh
7184
./configure --with-gui=no --disable-wallet \

0 commit comments

Comments
 (0)