libva does not respect the meson pkgconfig variable set in cross file
Tested on main
branch of the gstreamer.
Run the meson with this pkg-config setup:
(...)
[binaries]
c = ['arm-buildroot-linux-gnueabi-gcc']
cpp = ['arm-buildroot-linux-gnueabi-g++']
ar = ['arm-buildroot-linux-gnueabi-ar']
pkgconfig = '/tmp/project/pkg-config-wrapper.sh'
strip = ['arm-buildroot-linux-gnueabi-strip']
cmake = ['false']
File /tmp/project/pkg-config-wrapper.sh
:
#!/bin/bash
export PKG_CONFIG_SYSROOT_DIR=/tmp/sysroot/target-arm-buildroot-linux-gnueabi_glibc
exec pkg-config "$@"
The messon log:
(...)
gstreamer| Found pkg-config: /tmp/project/pkg-config-wrapper.sh (0.29.2)
(...)
libva| Found pkg-config: /usr/bin/pkg-config (0.29.2)
It detected correct pkg-config for the gstreamer but take default path to pkg-config in the libva which render the cross-compilation useless.