From 4c9256aaefdffa3387ec1f2336c0790e87ad6969 Mon Sep 17 00:00:00 2001 From: Tokunori Ikegami Date: Sun, 12 Nov 2023 23:24:05 +0900 Subject: [PATCH] build: Add -std=c99 for bootstrapping muon On older distros the bootstrap step fails because C99 is not the default C version. Thus explicitly set it. Signed-off-by: Tokunori Ikegami [dwagner: updated commit message] Signed-off-by: Daniel Wagner --- scripts/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 86d89f92..3507e47f 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -153,7 +153,8 @@ tools_build_muon() { pushd "${TOOLDIR}/muon" || exit 1 - CC="${CC}" ninja="${SAMU}" ./bootstrap.sh stage1 + CC="${CC}" CFLAGS="${CFLAGS} -std=c99" ninja="${SAMU}" \ + ./bootstrap.sh stage1 CC="${CC}" ninja="${SAMU}" stage1/muon setup \ -Dprefix="${TOOLDIR}" \