aboutsummaryrefslogtreecommitdiff
path: root/doc/build-netbsd.md
diff options
context:
space:
mode:
authorRandolf Richardson <randolf@richardson.tw>2018-01-08 11:26:00 -0800
committerfanquake <fanquake@gmail.com>2018-01-30 07:47:27 +0800
commit1944fa32053f311ca645d9cfdf543ec7000c622c (patch)
tree8e7a12dd26d026081064bc7d2e96dea3d11732b9 /doc/build-netbsd.md
parent336685e17ec774348ece079fbbd9ea91d8927b2a (diff)
downloadbitcoin-1944fa32053f311ca645d9cfdf543ec7000c622c.tar.xz
[doc] Create build-netbsd.md
Diffstat (limited to 'doc/build-netbsd.md')
-rw-r--r--doc/build-netbsd.md49
1 files changed, 49 insertions, 0 deletions
diff --git a/doc/build-netbsd.md b/doc/build-netbsd.md
new file mode 100644
index 0000000000..5bf2d6b59b
--- /dev/null
+++ b/doc/build-netbsd.md
@@ -0,0 +1,49 @@
+NetBSD build guide
+======================
+(updated for NetBSD 7.0)
+
+This guide describes how to build bitcoind and command-line utilities on NetBSD.
+
+This guide does not contain instructions for building the GUI.
+
+Preparation
+-------------
+
+You will need the following modules, which can be installed via pkgsrc or pkgin:
+
+```
+autoconf
+automake
+boost
+db4
+git
+gmake
+libevent
+libtool
+python27
+```
+
+Download the source code:
+```
+git clone https://github.com/bitcoin/bitcoin
+```
+
+See [dependencies.md](dependencies.md) for a complete overview.
+
+### Building Bitcoin Core
+
+**Important**: Use `gmake` (the non-GNU `make` will exit with an error).
+
+With wallet:
+```
+./autogen.sh
+./configure CPPFLAGS="-I/usr/pkg/include" LDFLAGS="-L/usr/pkg/lib" BOOST_CPPFLAGS="-I/usr/pkg/include" BOOST_LDFLAGS="-L/usr/pkg/lib"
+gmake
+```
+
+Without wallet:
+```
+./autogen.sh
+./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"
+gmake
+```