From 1df021927f119287985ac0cafefcfec9ead6d9ae Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Fri, 22 Mar 2024 13:26:45 +0100 Subject: [PATCH] Fix bpf-framework build failure with gcc-bpf The -mkernel option was dropped in https://github.com/gcc-mirror/gcc/commit/da445a5858299ed2a72af1089c225a438ab93ce2 We also need to ensure that the include paths are properly set for the linux kernel headers. Fixes: #31869 --- meson.build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 1bedbd5605..e43ec9454d 100644 --- a/meson.build +++ b/meson.build @@ -1693,7 +1693,6 @@ if conf.get('BPF_FRAMEWORK') == 1 '-std=gnu11', '-fno-stack-protector', '-O2', - '-mkernel=5.2', '-mcpu=v3', '-mco-re', '-gbtf', @@ -1742,7 +1741,7 @@ if conf.get('BPF_FRAMEWORK') == 1 bpf_o_unstripped_cmd += ['-I.'] - if not meson.is_cross_build() and bpf_compiler == 'clang' + if not meson.is_cross_build() target_triplet_cmd = run_command('gcc', '-dumpmachine', check: false) if target_triplet_cmd.returncode() == 0 target_triplet = target_triplet_cmd.stdout().strip()