wafHook: export PKGCONFIG if needed

This is useful for cross-compilation, where nixpkgs sets PKG_CONFIG.
waf decided to use PKGCONFIG instead, so we'll set it when necessary.
This commit is contained in:
Rick van Schijndel 2022-04-10 17:02:40 +02:00
parent 7937b511e0
commit a2f91d1831

View File

@ -10,6 +10,10 @@ wafConfigurePhase() {
wafConfigureFlags="${prefixKey:---prefix=}$prefix $wafConfigureFlags"
fi
if [ -n "${PKG_CONFIG}" ]; then
export PKGCONFIG="${PKG_CONFIG}"
fi
local flagsArray=(
"${flagsArray[@]}"
$wafConfigureFlags "${wafConfigureFlagsArray[@]}"