Skip to content

Commit 84a46a9

Browse files
emufanquake
authored andcommitted
doc: mention MAKE=gmake workaround when building on a BSD
Fixes: #14404
1 parent ce87d56 commit 84a46a9

File tree

3 files changed

+25
-20
lines changed

3 files changed

+25
-20
lines changed

doc/build-freebsd.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ This guide does not contain instructions for building the GUI.
1010

1111
You will need the following dependencies, which can be installed as root via pkg:
1212

13-
```shell
13+
```bash
1414
pkg install autoconf automake boost-libs git gmake libevent libtool pkgconf
1515

1616
git clone https://github.com/bitcoin/bitcoin.git
1717
```
1818

1919
In order to run the test suite (recommended), you will need to have Python 3 installed:
2020

21-
```shell
21+
```bash
2222
pkg install python3
2323
```
2424

@@ -29,32 +29,33 @@ See [dependencies.md](dependencies.md) for a complete overview.
2929
BerkeleyDB is only necessary for the wallet functionality. To skip this, pass
3030
`--disable-wallet` to `./configure` and skip to the next section.
3131

32-
```shell
32+
```bash
3333
./contrib/install_db4.sh `pwd`
3434
export BDB_PREFIX="$PWD/db4"
3535
```
3636

3737
## Building Bitcoin Core
3838

39-
**Important**: Use `gmake` (the non-GNU `make` will exit with an error):
39+
**Important**: Use `gmake` (the non-GNU `make` will exit with an error).
4040

4141
With wallet:
42-
```shell
42+
```bash
4343
./autogen.sh
4444
./configure --with-gui=no \
4545
BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" \
46-
BDB_CFLAGS="-I${BDB_PREFIX}/include"
46+
BDB_CFLAGS="-I${BDB_PREFIX}/include" \
47+
MAKE=gmake
4748
```
4849

4950
Without wallet:
50-
```shell
51+
```bash
5152
./autogen.sh
52-
./configure --with-gui=no --disable-wallet
53+
./configure --with-gui=no --disable-wallet MAKE=gmake
5354
```
5455

5556
followed by:
5657

57-
```shell
58+
```bash
5859
gmake # use -jX here for parallelism
5960
gmake check # Run tests if Python 3 is available
6061
```

doc/build-netbsd.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ from ports, for the same reason as boost above (g++/libstd++ incompatibility).
3737
If you have to build it yourself, you can use [the installation script included
3838
in contrib/](/contrib/install_db4.sh) like so:
3939

40-
```shell
40+
```bash
4141
./contrib/install_db4.sh `pwd`
4242
```
4343

4444
from the root of the repository. Then set `BDB_PREFIX` for the next section:
4545

46-
```shell
46+
```bash
4747
export BDB_PREFIX="$PWD/db4"
4848
```
4949

@@ -52,24 +52,26 @@ export BDB_PREFIX="$PWD/db4"
5252
**Important**: Use `gmake` (the non-GNU `make` will exit with an error).
5353

5454
With wallet:
55-
```
55+
```bash
5656
./autogen.sh
5757
./configure --with-gui=no CPPFLAGS="-I/usr/pkg/include" \
5858
LDFLAGS="-L/usr/pkg/lib" \
5959
BOOST_CPPFLAGS="-I/usr/pkg/include" \
6060
BOOST_LDFLAGS="-L/usr/pkg/lib" \
6161
BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" \
62-
BDB_CFLAGS="-I${BDB_PREFIX}/include"
62+
BDB_CFLAGS="-I${BDB_PREFIX}/include" \
63+
MAKE=gmake
6364
```
6465

6566
Without wallet:
66-
```
67+
```bash
6768
./autogen.sh
6869
./configure --with-gui=no --disable-wallet \
6970
CPPFLAGS="-I/usr/pkg/include" \
7071
LDFLAGS="-L/usr/pkg/lib" \
7172
BOOST_CPPFLAGS="-I/usr/pkg/include" \
72-
BOOST_LDFLAGS="-L/usr/pkg/lib"
73+
BOOST_LDFLAGS="-L/usr/pkg/lib" \
74+
MAKE=gmake
7375
```
7476

7577
Build and run the tests:

doc/build-openbsd.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ from ports, for the same reason as boost above (g++/libstd++ incompatibility).
3838
If you have to build it yourself, you can use [the installation script included
3939
in contrib/](/contrib/install_db4.sh) like so:
4040

41-
```shell
41+
```bash
4242
./contrib/install_db4.sh `pwd` CC=cc CXX=c++
4343
```
4444

4545
from the root of the repository. Then set `BDB_PREFIX` for the next section:
4646

47-
```shell
47+
```bash
4848
export BDB_PREFIX="$PWD/db4"
4949
```
5050

5151
### Building Bitcoin Core
5252

53-
**Important**: use `gmake`, not `make`. The non-GNU `make` will exit with a horrible error.
53+
**Important**: Use `gmake` (the non-GNU `make` will exit with an error).
5454

5555
Preparation:
5656
```bash
@@ -70,12 +70,14 @@ Make sure `BDB_PREFIX` is set to the appropriate path from the above steps.
7070
To configure with wallet:
7171
```bash
7272
./configure --with-gui=no CC=cc CXX=c++ \
73-
BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include"
73+
BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" \
74+
BDB_CFLAGS="-I${BDB_PREFIX}/include" \
75+
MAKE=gmake
7476
```
7577

7678
To configure without wallet:
7779
```bash
78-
./configure --disable-wallet --with-gui=no CC=cc CXX=c++
80+
./configure --disable-wallet --with-gui=no CC=cc CXX=c++ MAKE=gmake
7981
```
8082

8183
Build and run the tests:

0 commit comments

Comments
 (0)