summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorJohannes Schneider <johannes.schneider@leica-geosystems.com>2024-06-20 12:32:18 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-06-21 01:25:58 +0200
commitb608bf5620765de20851eca55cbd6c42ce1af450 (patch)
tree2bfd7af920475c9fa8f394f9eda73c6c629a0c44 /meson.build
parentMerge pull request #33430 from YHNdnzj/buserror-notify (diff)
downloadsystemd-b608bf5620765de20851eca55cbd6c42ce1af450.tar.xz
systemd-b608bf5620765de20851eca55cbd6c42ce1af450.zip
meson: bpf: propagate 'sysroot' for cross compilation
During cross-compilation of systemd, the compiler used to build the bpf's needs to be pointed at the correct include searchpath. Which can be done by passing the corresponding directory in through the cflags; for example in yocto/bitbake this would work: CFLAGS += "--sysroot=${STAGING_DIR_TARGET}" Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index dd335c1244..aa36e72b02 100644
--- a/meson.build
+++ b/meson.build
@@ -1740,6 +1740,7 @@ if conf.get('BPF_FRAMEWORK') == 1
'-ffile-prefix-map=',
'-fdebug-prefix-map=',
'-fmacro-prefix-map=',
+ '--sysroot=',
]
foreach opt : c_args