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
'-std=gnu11',
'-fno-stack-protector',
'-O2',
- '-mkernel=5.2',
'-mcpu=v3',
'-mco-re',
'-gbtf',
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()