validatePkgConfig: fix cross-compilation

Fixes cross-compilation for duktape and pugixml
This commit is contained in:
Ryan Burns 2021-10-08 23:38:52 -07:00
parent 5e2018f7b3
commit 9fb1f66d30

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