mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
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:
parent
7937b511e0
commit
a2f91d1831
@ -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[@]}"
|
||||
|
Loading…
Reference in New Issue
Block a user