]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Fix bpf-framework build failure with gcc-bpf
authorMichael Biebl <biebl@debian.org>
Fri, 22 Mar 2024 12:26:45 +0000 (13:26 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 23 Mar 2024 11:06:22 +0000 (12:06 +0100)
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

index 1bedbd56056c29d8268d7c687cd0f95bab0dd9c6..e43ec9454d4982b3333272f58f078cbe5fc9a172 100644 (file)
@@ -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()