Skip to content

Commit 2712742

Browse files
committed
doc: Update FreeBSD build instructions to use bdb4
Use Berkeley DB 4 as recommended on other platforms.
1 parent d95c83d commit 2712742

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

doc/build-unix.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -312,17 +312,13 @@ You need to use GNU make (`gmake`) instead of `make`.
312312

313313
For the wallet (optional):
314314

315-
pkg install db5
316-
317-
This will give a warning "configure: WARNING: Found Berkeley DB other
318-
than 4.8; wallets opened by this build will not be portable!", but as FreeBSD never
319-
had a binary release, this may not matter. If backwards compatibility
320-
with 4.8-built Bitcoin Core is needed follow the steps under "Berkeley DB" above.
315+
./contrib/install_db4.sh `pwd`
316+
setenv BDB_PREFIX $PWD/db4
321317

322318
Then build using:
323319

324320
./autogen.sh
325-
./configure --with-incompatible-bdb BDB_CFLAGS="-I/usr/local/include/db5" BDB_LIBS="-L/usr/local/lib -ldb_cxx-5"
321+
./configure BDB_CFLAGS="-I${BDB_PREFIX}/include" BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx"
326322
gmake
327323

328324
*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)