scripts/deps/bash: fix build for later gcc

'bool' has become a reserved keyword in c23.  If gcc is modern enough
that this is the default standard, it results in an error.  Default to
c99 for the host compiler to fix the problem.

Patch suggested by: @dec-mcgraw

Fixes: #43
This commit is contained in:
Matthew Leach
2025-12-05 06:15:52 +00:00
committed by Matthew Leach
parent afaae627cf
commit 76624b8be0

View File

@@ -14,7 +14,7 @@ if [ ! -d "bash-5.3" ]; then
fi
pushd "bash-5.3" &>/dev/null || exit 1
./configure --without-bash-malloc --enable-static-link --host="aarch64-linux-$stdlib"
CFLAGS_FOR_BUILD="-std=c99" ./configure --without-bash-malloc --enable-static-link --host="aarch64-linux-$stdlib"
make clean
make
mv bash ../bin/bash