wafHook: ignore configurePlatforms
waf does support --build and --host, but the only effect of these options is an error message telling to use --cross-compile instead. So we ignore these flags.
This commit is contained in:
parent
f23a21514c
commit
1001d0034c
@ -13,12 +13,18 @@ wafConfigurePhase() {
|
|||||||
local flagsArray=();
|
local flagsArray=();
|
||||||
for flag in $configureFlags "${configureFlagsArray[@]}";
|
for flag in $configureFlags "${configureFlagsArray[@]}";
|
||||||
do
|
do
|
||||||
|
if [[
|
||||||
# waf does not support these flags, but they are "blindly" added by the
|
# waf does not support these flags, but they are "blindly" added by the
|
||||||
# pkgsStatic overlay, for example.
|
# pkgsStatic overlay, for example.
|
||||||
if [[ $flag != "--enable-static"
|
$flag != "--enable-static"
|
||||||
&& $flag != "--disable-static"
|
&& $flag != "--disable-static"
|
||||||
&& $flag != "--enable-shared"
|
&& $flag != "--enable-shared"
|
||||||
&& $flag != "--disable-shared" ]];
|
&& $flag != "--disable-shared"
|
||||||
|
# these flags are added by configurePlatforms but waf just uses them
|
||||||
|
# to bail out in cross compilation cases
|
||||||
|
&& $flag != --build=*
|
||||||
|
&& $flag != --host=*
|
||||||
|
]];
|
||||||
then
|
then
|
||||||
flagsArray=("${flagsArray[@]}" "$flag");
|
flagsArray=("${flagsArray[@]}" "$flag");
|
||||||
fi;
|
fi;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user