aboutsummaryrefslogtreecommitdiff
path: root/doc/build-openbsd.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-openbsd.md
parentce87d5613a5537b68cf23e7bc25c1e3770704ff9 (diff)
doc: mention MAKE=gmake workaround when building on a BSD
Fixes: #14404
Diffstat (limited to 'doc/build-openbsd.md')
-rw-r--r--doc/build-openbsd.md12
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/build-openbsd.md b/doc/build-openbsd.md
index dad2566a6c..53c647ae34 100644
--- a/doc/build-openbsd.md
+++ b/doc/build-openbsd.md
@@ -38,19 +38,19 @@ 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` CC=cc CXX=c++
```
from the root of the repository. Then set `BDB_PREFIX` for the next section:
-```shell
+```bash
export BDB_PREFIX="$PWD/db4"
```
### Building Bitcoin Core
-**Important**: use `gmake`, not `make`. The non-GNU `make` will exit with a horrible error.
+**Important**: Use `gmake` (the non-GNU `make` will exit with an error).
Preparation:
```bash
@@ -70,12 +70,14 @@ Make sure `BDB_PREFIX` is set to the appropriate path from the above steps.
To configure with wallet:
```bash
./configure --with-gui=no CC=cc CXX=c++ \
- BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include"
+ BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" \
+ BDB_CFLAGS="-I${BDB_PREFIX}/include" \
+ MAKE=gmake
```
To configure without wallet:
```bash
-./configure --disable-wallet --with-gui=no CC=cc CXX=c++
+./configure --disable-wallet --with-gui=no CC=cc CXX=c++ MAKE=gmake
```
Build and run the tests: