meson: Allow usage of externally overridden pkg-config

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1327>
This commit is contained in:
L. E. Segovia 2023-08-17 22:07:16 -03:00 committed by Sebastian Dröge
parent 379d3de31c
commit d6f42a2037

View file

@ -368,7 +368,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