]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
meson: set the sysroot in the cross files
authorRoss Burton <ross.burton@arm.com>
Fri, 16 Feb 2024 14:46:03 +0000 (14:46 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 17 Feb 2024 18:17:48 +0000 (18:17 +0000)
When cross compiling we have a sysroot, so by telling Meson where it is
explicitly it can do the right thing.

Currently this means it just sets PKG_CONFIG_SYSROOT_DIR to the value
that we already set it to, but in the future this can be used to stop
Meson looking directly in /usr when it shouldn't.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/meson.bbclass

index a849e87297669dd3f525fb004bf4c6419a6d1391..03fa2c06eb4aa5046b2f50ffe593c816452e04b7 100644 (file)
@@ -90,6 +90,7 @@ cpp_link_args = ${@meson_array('LDFLAGS', d)}
 
 [properties]
 needs_exe_wrapper = true
+sys_root = '${STAGING_DIR_HOST}'
 
 [host_machine]
 system = '${@meson_operating_system('HOST_OS', d)}'