Assume cross-compilation if EMBEDDED was specified

This commit is contained in:
Martin Kroeker 2024-08-06 23:50:20 +02:00 committed by GitHub
parent 5bdd3a05f0
commit 447d66a9e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -385,6 +385,7 @@ if [ "$architecture" != "$hostarch" ]; then
[ "$hostarch" = "mips64" ] && [ "$architecture" = "mips" ] && cross=0 [ "$hostarch" = "mips64" ] && [ "$architecture" = "mips" ] && cross=0
fi fi
[ "$EMBEDDED" != 0 ] && cross=1
[ "$os" != "$hostos" ] && cross=1 [ "$os" != "$hostos" ] && cross=1
[ "$os" = "Android" ] && [ "$hostos" = "Linux" ] && [ -n "$TERMUX_APP_PID" ] \ [ "$os" = "Android" ] && [ "$hostos" = "Linux" ] && [ -n "$TERMUX_APP_PID" ] \
&& cross=0 && cross=0