Skip to content

Commit 5cc2ebb

Browse files
committed
Update OpenBSD and FreeBSD build steps
Re-try with most recent versions, and use BDB_CFLAGS/BDB_LIBS to directly point at BerkeleyDB instead of CPPFLAGS hacks.
1 parent 8713de8 commit 5cc2ebb

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

doc/build-openbsd.md

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

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

@@ -124,7 +124,7 @@ To configure with wallet:
124124
```bash
125125
./configure --with-gui=no --with-boost=$BOOST_PREFIX \
126126
CC=egcc CXX=eg++ CPP=ecpp \
127-
LDFLAGS="-L${BDB_PREFIX}/lib/" CPPFLAGS="-I${BDB_PREFIX}/include/"
127+
BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include"
128128
```
129129

130130
To configure without wallet:
@@ -142,6 +142,8 @@ gmake check
142142
Clang (not currently working)
143143
------------------------------
144144

145+
WARNING: This is outdated, needs to be updated for OpenBSD 6.0 and re-tried.
146+
145147
Using a newer g++ results in linking the new code to a new libstdc++.
146148
Libraries built with the old g++, will still import the old library.
147149
This gives conflicts, necessitating rebuild of all C++ dependencies of the application.

doc/build-unix.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ For further documentation on the depends system see [README.md](../depends/READM
315315
Building on FreeBSD
316316
--------------------
317317

318-
(Updated as of FreeBSD 10.3)
318+
(Updated as of FreeBSD 11.0)
319319

320320
Clang is installed by default as `cc` compiler, this makes it easier to get
321321
started than on [OpenBSD](build-openbsd.md). Installing dependencies:
@@ -337,7 +337,7 @@ with 4.8-built Bitcoin Core is needed follow the steps under "Berkeley DB" above
337337
Then build using:
338338

339339
./autogen.sh
340-
./configure --with-incompatible-bdb CPPFLAGS=-I/usr/local/include/db5 LDFLAGS=-L/usr/local/lib/db5
340+
./configure --with-incompatible-bdb BDB_CFLAGS="-I/usr/local/include/db5" BDB_LIBS="-L/usr/local/lib -ldb_cxx-5"
341341
make
342342

343343
*Note on debugging*: The version of `gdb` installed by default is [ancient and considered harmful](https://wiki.freebsd.org/GdbRetirement).

0 commit comments

Comments
 (0)