meson: Allow usage of externally overridden pkg-config

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1302>
This commit is contained in:
L. E. Segovia 2023-08-17 22:07:16 -03:00
parent 1e0621797d
commit 7dea39736b

View file

@ -373,7 +373,7 @@ if get_option('doc').disabled()
endif
# 'pkgconfig' is the entry in the machine file, if specified
pkg_config = find_program('pkgconfig', required: false)
pkg_config = find_program('pkgconfig', 'pkg-config', required: false)
if pkg_config.found()
extra_env += {'PKG_CONFIG': pkg_config.full_path()}
endif