summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorManuel Bentele2020-11-23 07:52:28 +0100
committerManuel Bentele2020-11-23 07:52:28 +0100
commit1baa63afc6f321e27fbeab81e31965432fb5bc2d (patch)
tree1267a9adcef02e69d452ff1f3c5df61131dd6bc3 /README.md
parent[BUILD] add CMake find package search to find 'libatomic' automatically (diff)
downloaddnbd3-1baa63afc6f321e27fbeab81e31965432fb5bc2d.tar.gz
dnbd3-1baa63afc6f321e27fbeab81e31965432fb5bc2d.tar.xz
dnbd3-1baa63afc6f321e27fbeab81e31965432fb5bc2d.zip
[BUILD] update search paths for 'libatomic' to support build on FreeBSD
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index 954fbe9..8e7e1df 100644
--- a/README.md
+++ b/README.md
@@ -97,6 +97,7 @@ Note that `afl` is not available on CentOS 8 and should be built from the [origi
```shell
pkg install git \
cmake \
+ gcc \
pkgconf \
fusefs-libs \
jansson \
@@ -138,6 +139,10 @@ A value from the range of appropriate values can be assigend to each configurati
cmake -D<VARIABLE>=<VALUE> [-D ...] ../.
```
+> **Note that the default compiler on FreeBSD 12.1 is clang/llvm and should be changed to gcc by appending the set CMake compiler configuration variable -DCMAKE_C_COMPILER=gcc to the CMake configuration command.**
+
+
+### Cross-Compiling
With the help of CMake, it is also possible to cross-compile the dnbd3 components for a Linux target architecture other than the compiling Linux host architecture. This repository is shipped with two CMake toolchain files to cross-compile all components for the following two Linux target architectures if necessary.
> **Note that all used header files (eg. Linux kernel headers) and libraries (eg. jansson, fuse) for the target architecture are installed and set up properly, so that the cross-compiler can find and use them.**