Merge pull request #141072 from r-burns/validatepkgconfig-cross

[staging] validatePkgConfig: fix cross-compilation
This commit is contained in:
John Ericson 2021-10-23 23:09:42 -04:00 committed by GitHub
commit e2eccfc521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ _validatePkgConfig() {
for pc in $(find "$prefix" -name '*.pc'); do
# Do not fail immediately. It's nice to see all errors when
# there are multiple pkgconfig files.
if ! pkg-config --validate "$pc"; then
if ! $PKG_CONFIG --validate "$pc"; then
bail=1
fi
done