Skip to content

Commit 1944fa3

Browse files
randolffanquake
authored andcommitted
[doc] Create build-netbsd.md
1 parent 336685e commit 1944fa3

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

doc/build-netbsd.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
NetBSD build guide
2+
======================
3+
(updated for NetBSD 7.0)
4+
5+
This guide describes how to build bitcoind and command-line utilities on NetBSD.
6+
7+
This guide does not contain instructions for building the GUI.
8+
9+
Preparation
10+
-------------
11+
12+
You will need the following modules, which can be installed via pkgsrc or pkgin:
13+
14+
```
15+
autoconf
16+
automake
17+
boost
18+
db4
19+
git
20+
gmake
21+
libevent
22+
libtool
23+
python27
24+
```
25+
26+
Download the source code:
27+
```
28+
git clone https://github.com/bitcoin/bitcoin
29+
```
30+
31+
See [dependencies.md](dependencies.md) for a complete overview.
32+
33+
### Building Bitcoin Core
34+
35+
**Important**: Use `gmake` (the non-GNU `make` will exit with an error).
36+
37+
With wallet:
38+
```
39+
./autogen.sh
40+
./configure CPPFLAGS="-I/usr/pkg/include" LDFLAGS="-L/usr/pkg/lib" BOOST_CPPFLAGS="-I/usr/pkg/include" BOOST_LDFLAGS="-L/usr/pkg/lib"
41+
gmake
42+
```
43+
44+
Without wallet:
45+
```
46+
./autogen.sh
47+
./configure --disable-wallet CPPFLAGS="-I/usr/pkg/include" LDFLAGS="-L/usr/pkg/lib" BOOST_CPPFLAGS="-I/usr/pkg/include" BOOST_LDFLAGS="-L/usr/pkg/lib"
48+
gmake
49+
```

0 commit comments

Comments
 (0)