From 76624b8be0b6bca3d83fc6bea8e3a89949ce16b0 Mon Sep 17 00:00:00 2001 From: Matthew Leach Date: Fri, 5 Dec 2025 06:15:52 +0000 Subject: [PATCH] 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 --- scripts/deps/bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deps/bash b/scripts/deps/bash index 7f6754d..bb2f60e 100755 --- a/scripts/deps/bash +++ b/scripts/deps/bash @@ -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