aboutsummaryrefslogtreecommitdiff
path: root/doc/build-netbsd.md
diff options
context:
space:
mode:
authoremu <emu@inbox.srvmin.network>2020-02-12 18:16:39 +0000
committerfanquake <fanquake@gmail.com>2020-03-18 07:55:07 +0800
commit84a46a9b93671b899faf3900936904199d92daaf (patch)
treebe47272ccbffd59e172e1b8549701a919df4dcaa /doc/build-netbsd.md
parentce87d5613a5537b68cf23e7bc25c1e3770704ff9 (diff)
downloadbitcoin-84a46a9b93671b899faf3900936904199d92daaf.tar.xz
doc: mention MAKE=gmake workaround when building on a BSD
Fixes: #14404
Diffstat (limited to 'doc/build-netbsd.md')
-rw-r--r--doc/build-netbsd.md14
1 files changed, 8 insertions, 6 deletions
diff --git a/doc/build-netbsd.md b/doc/build-netbsd.md
index ab422f6aa7..47049a780e 100644
--- a/doc/build-netbsd.md
+++ b/doc/build-netbsd.md
@@ -37,13 +37,13 @@ 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:
-```shell
+```bash
./contrib/install_db4.sh `pwd`
```
from the root of the repository. Then set `BDB_PREFIX` for the next section:
-```shell
+```bash
export BDB_PREFIX="$PWD/db4"
```
@@ -52,24 +52,26 @@ export BDB_PREFIX="$PWD/db4"
**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" \
LDFLAGS="-L/usr/pkg/lib" \
BOOST_CPPFLAGS="-I/usr/pkg/include" \
BOOST_LDFLAGS="-L/usr/pkg/lib" \
BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" \
- BDB_CFLAGS="-I${BDB_PREFIX}/include"
+ BDB_CFLAGS="-I${BDB_PREFIX}/include" \
+ MAKE=gmake
```
Without wallet:
-```
+```bash
./autogen.sh
./configure --with-gui=no --disable-wallet \
CPPFLAGS="-I/usr/pkg/include" \
LDFLAGS="-L/usr/pkg/lib" \
BOOST_CPPFLAGS="-I/usr/pkg/include" \
- BOOST_LDFLAGS="-L/usr/pkg/lib"
+ BOOST_LDFLAGS="-L/usr/pkg/lib" \
+ MAKE=gmake
```
Build and run the tests: