meson: bpf: propagate 'sysroot' for cross compilation
authorJohannes Schneider <johannes.schneider@leica-geosystems.com>
Thu, 20 Jun 2024 10:32:18 +0000 (12:32 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 20 Jun 2024 23:25:58 +0000 (08:25 +0900)
commitb608bf5620765de20851eca55cbd6c42ce1af450
tree2bfd7af920475c9fa8f394f9eda73c6c629a0c44
parentd42edbf1b8d218757b854ecf52678fdcbad1d256
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>
meson.build