Environment details
Steps to reproduce
When I use PkgConfig in a recipe which has a Yocto toolchain package in its build requirements the environment variables set by this package via buildenv_info are not visible to PkgConfig. However, when I set the same variables with env_info it works fine. I think this is not the intended behavior. Yocto toolchains set PKG_CONFIG_PATH so that the pkg-config executable can find the correct .pc files. Without this variable it will query the host system instead.
Logs
No response