]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Add documentation for --with-clang parameter 4112/head
authorHilko Bengen <bengen@hilluzination.de>
Wed, 24 Jul 2019 09:36:53 +0000 (11:36 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 20 Aug 2019 12:22:50 +0000 (14:22 +0200)
doc/userguide/capture-hardware/ebpf-xdp.rst

index 710adb38a5b37867472ca4545ccf90d292a3d6f1..96c45d3e6539f1274fe3a00080f288c4100bb989 100644 (file)
@@ -97,7 +97,8 @@ To get Suricata source, you can use the usual ::
 
  ./autogen.sh
 
-Then you need to add the ebpf flags to configure ::
+Then you need to add the ebpf flags to configure and specify the Clang
+compiler for building all C sources, including the eBPF programs ::
 
  CC=clang ./configure --prefix=/usr/ --sysconfdir=/etc/ --localstatedir=/var/ \
  --enable-ebpf --enable-ebpf-build
@@ -108,7 +109,12 @@ Then you need to add the ebpf flags to configure ::
  sudo mkdir /etc/suricata/ebpf/
 
 The ``clang`` compiler is needed if you want to build eBPF files as the build
-is done via a specific eBPF backend available only in llvm/clang suite.
+is done via a specific eBPF backend available only in llvm/clang suite. If you
+don't want to use Clang for building Suricata itself, you can still specify it
+separately, using the ``--with-clang`` parameter ::
+
+ ./configure --prefix=/usr/ --sysconfdir=/etc/ --localstatedir=/var/ \
+ --enable-ebpf --enable-ebpf-build --with-clang=/usr/bin/clang
 
 Setup bypass
 ------------