Skip to content

Commit

Permalink
update(content/en/docs): add Alpine section for the statically-linked…
Browse files Browse the repository at this point in the history
… build

Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
Co-authored-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
  • Loading branch information
3 people authored and poiana committed Sep 10, 2020
1 parent 393aa29 commit e10197a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions content/en/docs/source.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,29 @@ cmake -DBUILD_BPF=ON ..
make bpf
```

## Alpine

Since Alpine ships with `musl` instead of `glibc`, to build on Alpine, we need to pass the `-DMUSL_OPTIMIZED_BUILD=On` CMake option.

If that option is used along with the `-DUSE_BUNDLED_DEPS=On` option, then the final build will be 100% statically-linked and portable across different Linux distributions.

### Dependencies

```bash
apk add g++ gcc cmake cmake make ncurses-dev git bash perl linux-headers autoconf automake m4 libtool elfutils-dev libelf-static patch binutils
```

### Build Falco

```bash
git clone https://github.com/falcosecurity/falco.git
cd falco
mkdir -p build
cd build
cmake -DUSE_BUNDLED_DEPS=On -DMUSL_OPTIMIZED_BUILD=On ..
make falco
```

## Dependencies

By default Falco build bundles **most of** its runtime dependencies **dynamically**.
Expand Down

0 comments on commit e10197a

Please sign in to comment.