From 1baa63afc6f321e27fbeab81e31965432fb5bc2d Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Mon, 23 Nov 2020 07:52:28 +0100 Subject: [BUILD] update search paths for 'libatomic' to support build on FreeBSD --- README.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'README.md') 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= [-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.** -- cgit v1.2.3-55-g7522