update freebsd doc

This commit is contained in:
Patrick Lodder 2021-08-30 02:08:46 +02:00
parent 18dbe3291b
commit 84be09269b
No known key found for this signature in database
GPG key ID: 2D3A345B98D0DC1F

View file

@ -1,12 +1,11 @@
Building on FreeBSD Building on FreeBSD
-------------------- --------------------
***NOTE: This documentation is outdated and needs to be updated*** **Last tested with:** 1.14.5-dev (as of 18dbe32)
**Tested on:** FreeBSD 11.4
(Updated as of FreeBSD 11.0)
Clang is installed by default as `cc` compiler, this makes it easier to get Clang is installed by default as `cc` compiler, this makes it easier to get
started than on [OpenBSD](build-openbsd.md). Installing dependencies: started than on other distros. Installing dependencies:
pkg install autoconf automake libtool pkgconf pkg install autoconf automake libtool pkgconf
pkg install boost-libs openssl libevent pkg install boost-libs openssl libevent
@ -19,16 +18,19 @@ For the wallet (optional):
pkg install db5 pkg install db5
This will give a warning "configure: WARNING: Found Berkeley DB other As of writing, the default hardening routines will fail on the scrypt code, so
than 4.8; wallets opened by this build will not be portable!", but as FreeBSD never currently, no hardened executables can be built, and the `--disable-hardening`
had a binary release, this may not matter. If backwards compatibility flag is needed for successful compilation.
with 4.8-built Dogecoin Core is needed follow the steps under "Berkeley DB" above.
Then build using: Then build using:
```bash
./autogen.sh ./autogen.sh
./configure --with-incompatible-bdb BDB_CFLAGS="-I/usr/local/include/db5" BDB_LIBS="-L/usr/local/lib -ldb_cxx-5" ./configure --disable-hardening MAKE="gmake" \
CFLAGS="-I/usr/local/include" CXXFLAGS="-I/usr/local/include -I/usr/local/include/db5" \
LDFLAGS="-L/usr/local/lib -L/usr/local/lib/db5"
gmake gmake
```
*Note on debugging*: The version of `gdb` installed by default is [ancient and considered harmful](https://wiki.freebsd.org/GdbRetirement). *Note on debugging*: The version of `gdb` installed by default is [ancient and considered harmful](https://wiki.freebsd.org/GdbRetirement).
It is not suitable for debugging a multi-threaded C++ program, not even for getting backtraces. Please install the package `gdb` and It is not suitable for debugging a multi-threaded C++ program, not even for getting backtraces. Please install the package `gdb` and