You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See [dependencies.md](dependencies.md) for a complete overview.
25
25
26
-
GCC
27
-
-------
28
-
29
-
The default C++ compiler that comes with OpenBSD 6.2 is g++ 4.2.1. This version is old (from 2007), and is not able to compile the current version of Bitcoin Core because it has no C++11 support. We'll install a newer version of GCC:
30
-
31
-
```bash
32
-
pkg_add g++
33
-
```
34
-
35
-
This compiler will not overwrite the system compiler, it will be installed as `egcc` and `eg++` in `/usr/local/bin`.
26
+
**Important**: From OpenBSD 6.2 onwards a C++11-supporting clang compiler is
27
+
part of the base image, and while building it is necessary to make sure that this
28
+
compiler is used and not ancient g++ 4.2.1. This is done by appending
29
+
`CC=cc CXX=c++` to configuration commands. Mixing different compilers
30
+
within the same executable will result in linker errors.
36
31
37
32
### Building BerkeleyDB
38
33
39
-
BerkeleyDB is only necessary for the wallet functionality. To skip this, pass `--disable-wallet` to `./configure`.
34
+
BerkeleyDB is only necessary for the wallet functionality. To skip this, pass
35
+
`--disable-wallet` to `./configure` and skip to the next section.
40
36
41
37
It is recommended to use Berkeley DB 4.8. You cannot use the BerkeleyDB library
42
38
from ports, for the same reason as boost above (g++/libstd++ incompatibility).
43
39
If you have to build it yourself, you can use [the installation script included
0 commit comments