From: James Hilliard Date: Mon, 1 Aug 2022 01:34:11 +0000 (+0000) Subject: bpf: set gcc std and compile flags X-Git-Tag: v252-rc1~550 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e8b2a71c79ff148e6dbf205cc986aae447a33ac;p=thirdparty%2Fsystemd.git bpf: set gcc std and compile flags This should make gcc bpf compilation more reliable. --- diff --git a/src/core/bpf/meson.build b/src/core/bpf/meson.build index c2f9b5ac428..f65401617a9 100644 --- a/src/core/bpf/meson.build +++ b/src/core/bpf/meson.build @@ -5,6 +5,7 @@ if conf.get('BPF_FRAMEWORK') != 1 endif bpf_clang_flags = [ + '-std=gnu11', '-Wno-compare-distinct-pointer-types', '-O2', '-target', @@ -14,11 +15,13 @@ bpf_clang_flags = [ ] bpf_gcc_flags = [ + '-std=gnu11', '-O2', '-mkernel=5.2', '-mcpu=v3', '-mco-re', '-gbtf', + '-c', ] # Generate defines that are appropriate to tell the compiler what architecture