On Tue, 30 Nov 2021 at 21:00, Joel Winarske wrote: > Yes, if the sys_root key value in meson.cross is present > PKG_CONFIG_SYSROOT_DIR gets set. Honister patch I confirmed with: > > https://github.com/jwinarske/manifests/blob/honister/rpi64/0001-Add-sys_root-to-properties-section.patch > > The issue is that meson doesn't pass PKG_CONFIG_SYSROOT_DIR to the shell > environment that runs pkg-config, as with the pkg-config sandbox test it > does work. > Both meson source code and its documentation indicate otherwise - if you set sys_root property, it will get passed to pkg-config via environment as PKG_CONFIG_SYSROOT_DIR: https://github.com/mesonbuild/meson/blob/master/mesonbuild/dependencies/pkgconfig.py#L121 Alex