xdp-tools: disable stack protector for BPF programs
authorStijn Tintel <stijn@linux-ipv6.be>
Fri, 28 Jul 2023 19:40:34 +0000 (22:40 +0300)
committerStijn Tintel <stijn@linux-ipv6.be>
Thu, 3 Aug 2023 14:39:39 +0000 (17:39 +0300)
commit15acde674c76504e023a525506a2e248e9aecd24
tree41e418bf870ca7e019710ee5174125880d7bb420
parent57fda4b743ecf06c217d2670002313d528ff817a
xdp-tools: disable stack protector for BPF programs

When building xdp-tools with CONFIG_USE_LLVM_HOST=y, on a host that
enabled stack protector by default in Clang, compilation fails with the
following error:

    CLANG    xdp-dispatcher.o
clang-16: error: ignoring '-fstack-protector-strong' option as it is not currently supported for target 'bpfeb' [-Werror,-Woption-ignored]

Add -fno-stack-protector to BPF_CFLAGS to fix this.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
package/network/utils/xdp-tools/Makefile