Skip to content

Commit 74b20f7

Browse files
committed
Cleanup OBSD guide
1 parent f8be455 commit 74b20f7

File tree

1 file changed

+11
-19
lines changed

1 file changed

+11
-19
lines changed

doc/build-openbsd.md

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
OpenBSD build guide
22
======================
3-
(updated for OpenBSD 6.9)
3+
(updated for OpenBSD 7.0)
44

55
This guide describes how to build gridcoinresearchd, command-line utilities, and GUI on OpenBSD.
66

@@ -14,24 +14,16 @@ pkg_add git gmake libtool libevent boost libzip
1414
pkg_add qt5 libqrencode # (optional for enabling the GUI)
1515
pkg_add autoconf # (select highest version, e.g. 2.71)
1616
pkg_add automake # (select highest version, e.g. 1.16)
17-
pkg_add python # (select highest version, e.g. 3.9)
17+
pkg_add python # (select highest version, e.g. 3.10)
1818
```
19-
20-
**Important**: From OpenBSD 6.2 onwards a C++11-supporting clang compiler is
21-
part of the base image, and while building it is necessary to make sure that
22-
this compiler is used and not ancient g++ 4.2.1. This is done by appending
23-
`CC=cc CC_FOR_BUILD=cc CXX=c++` to configuration commands. Mixing different
24-
compilers within the same executable will result in errors.
25-
2619
### Building BerkeleyDB
2720

28-
It is recommended to use Berkeley DB 4.8. You cannot use the BerkeleyDB library
29-
from ports, for the same reason as boost above (g++/libstd++ incompatibility).
21+
It is recommended to use Berkeley DB 4.8.
3022
If you have to build it yourself, you can use [the installation script included
3123
in contrib/](/contrib/install_db4.sh) like so:
3224

3325
```bash
34-
./contrib/install_db4.sh `pwd` CC=cc CXX=c++
26+
./contrib/install_db4.sh `pwd`
3527
```
3628

3729
from the root of the repository. Then set `BDB_PREFIX` for the next section:
@@ -68,29 +60,29 @@ Preparation:
6860
```bash
6961

7062
# Replace this with the autoconf version that you installed. Include only
71-
# the major and minor parts of the version: use "2.69" for "autoconf-2.69p2".
72-
export AUTOCONF_VERSION=2.69
63+
# the major and minor parts of the version: use "2.71" for "autoconf-2.71p1".
64+
export AUTOCONF_VERSION=2.71
7365

7466
# Replace this with the automake version that you installed. Include only
75-
# the major and minor parts of the version: use "1.16" for "automake-1.16.1".
67+
# the major and minor parts of the version: use "1.16" for "automake-1.16.3".
7668
export AUTOMAKE_VERSION=1.16
7769

7870
./autogen.sh
7971
```
8072

81-
Make sure `BDB_PREFIX` and `BOOST_PREFIX` are set to the appropriate paths from the above steps.
73+
Make sure `BDB_PREFIX` is set to the appropriate paths from the above steps.
8274

83-
To configure with wallet:
75+
To configure with gridcoinresearchd:
8476
```bash
85-
./configure --with-gui=no CC=cc CXX=c++ \
77+
./configure --with-gui=no \
8678
BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" \
8779
BDB_CFLAGS="-I${BDB_PREFIX}/include" \
8880
MAKE=gmake
8981
```
9082

9183
To configure with GUI:
9284
```bash
93-
./configure --with-gui=yes CC=cc CXX=c++ \
85+
./configure --with-gui=yes \
9486
BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" \
9587
BDB_CFLAGS="-I${BDB_PREFIX}/include" \
9688
MAKE=gmake

0 commit comments

Comments
 (0)