aboutsummaryrefslogtreecommitdiff
path: root/doc/build-freebsd.md
diff options
context:
space:
mode:
authorPatrick Lodder <[email protected]>2021-08-19 22:11:20 +0200
committerPatrick Lodder <[email protected]>2021-08-19 22:11:20 +0200
commitc39bdb9e49ab078f303ae1a2152e8a389fb0fdce (patch)
tree90f4dadfa22eb29b0e14ee897a05bba2e70cd3d7 /doc/build-freebsd.md
parentMerge pull request #2458 from patricklodder/1.14.4-disconnect-bad-node-test (diff)
downloaddiscoin-c39bdb9e49ab078f303ae1a2152e8a389fb0fdce.tar.xz
discoin-c39bdb9e49ab078f303ae1a2152e8a389fb0fdce.zip
split off all distro-specific guides off build-unix.md
Diffstat (limited to 'doc/build-freebsd.md')
-rw-r--r--doc/build-freebsd.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/build-freebsd.md b/doc/build-freebsd.md
new file mode 100644
index 000000000..e8cb3be80
--- /dev/null
+++ b/doc/build-freebsd.md
@@ -0,0 +1,33 @@
+Building on FreeBSD
+--------------------
+
+(Updated as of FreeBSD 11.0)
+
+Clang is installed by default as `cc` compiler, this makes it easier to get
+started than on [OpenBSD](build-openbsd.md). Installing dependencies:
+
+ pkg install autoconf automake libtool pkgconf
+ pkg install boost-libs openssl libevent
+ pkg install gmake
+
+You need to use GNU make (`gmake`) instead of `make`.
+(`libressl` instead of `openssl` will also work)
+
+For the wallet (optional):
+
+ pkg install db5
+
+This will give a warning "configure: WARNING: Found Berkeley DB other
+than 4.8; wallets opened by this build will not be portable!", but as FreeBSD never
+had a binary release, this may not matter. If backwards compatibility
+with 4.8-built Dogecoin Core is needed follow the steps under "Berkeley DB" above.
+
+Then build using:
+
+ ./autogen.sh
+ ./configure --with-incompatible-bdb BDB_CFLAGS="-I/usr/local/include/db5" BDB_LIBS="-L/usr/local/lib -ldb_cxx-5"
+ gmake
+
+*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
+use the versioned gdb command e.g. `gdb7111`.