Skip to content

Commit 6d5a9fe

Browse files
committed
Merge #19605: doc: set CC_FOR_BUILD when building on OpenBSD
01cd24c doc: set CC_FOR_BUILD when building on OpenBSD (fanquake) Pull request description: Closes: #19559 While #19559 has been fixed upstream, it makes sense to not only recommend using `CC_FOR_BUILD`here until the fix is pulled in as part of our next libsecp update, but after discussing with Cory, he suggested we should be setting this on OpenBSD (which still has the an ancient GCC) regardless. ACKs for top commit: real-or-random: ACK 01cd24c I looked at the diff (but can't test the instructions on OpenBSD) laanwj: Code review ACK 01cd24c Tree-SHA512: 322802b9303771f1be2ad9628f268dfa71dc7ee77948fa2a34f21eceb19b2d8efdd8876c8f0778adbfcde48fa0f88cd4e698ae425428159abca38e8c7980da1d
2 parents 04a0676 + 01cd24c commit 6d5a9fe

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/build-openbsd.md

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

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

@@ -15,18 +15,18 @@ Run the following as root to install the base dependencies for building:
1515
pkg_add git gmake libevent libtool boost
1616
pkg_add autoconf # (select highest version, e.g. 2.69)
1717
pkg_add automake # (select highest version, e.g. 1.16)
18-
pkg_add python # (select highest version, e.g. 3.6)
18+
pkg_add python # (select highest version, e.g. 3.8)
1919

2020
git clone https://github.com/bitcoin/bitcoin.git
2121
```
2222

2323
See [dependencies.md](dependencies.md) for a complete overview.
2424

2525
**Important**: From OpenBSD 6.2 onwards a C++11-supporting clang compiler is
26-
part of the base image, and while building it is necessary to make sure that this
27-
compiler is used and not ancient g++ 4.2.1. This is done by appending
28-
`CC=cc CXX=c++` to configuration commands. Mixing different compilers
29-
within the same executable will result in linker errors.
26+
part of the base image, and while building it is necessary to make sure that
27+
this compiler is used and not ancient g++ 4.2.1. This is done by appending
28+
`CC=cc CC_FOR_BUILD=cc CXX=c++` to configuration commands. Mixing different
29+
compilers within the same executable will result in errors.
3030

3131
### Building BerkeleyDB
3232

@@ -77,7 +77,7 @@ To configure with wallet:
7777

7878
To configure without wallet:
7979
```bash
80-
./configure --disable-wallet --with-gui=no CC=cc CXX=c++ MAKE=gmake
80+
./configure --disable-wallet --with-gui=no CC=cc CC_FOR_BUILD=cc CXX=c++ MAKE=gmake
8181
```
8282

8383
Build and run the tests:

0 commit comments

Comments
 (0)