1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-10 05:18:17 +03:00

bpf: disable -fstack-protector in meson

In Gentoo, we recently started making Clang behave the same way as
our GCC, with -fstack-protector and some friends enabled by default.

SSP doesn't make sense for BPF, so disable it explicitly.

See also e.g. https://www.spinics.net/lists/netdev/msg556400.html.

Bug: https://bugs.gentoo.org/890004
This commit is contained in:
Sam James 2023-01-13 05:17:56 +00:00 committed by Luca Boccassi
parent 48e582d7fe
commit e3342b2d3f

View File

@ -7,6 +7,7 @@ endif
bpf_clang_flags = [
'-std=gnu11',
'-Wno-compare-distinct-pointer-types',
'-fno-stack-protector',
'-O2',
'-target',
'bpf',
@ -16,6 +17,7 @@ bpf_clang_flags = [
bpf_gcc_flags = [
'-std=gnu11',
'-fno-stack-protector',
'-O2',
'-mkernel=5.2',
'-mcpu=v3',