Skip to content

Commit 1ca24e4

Browse files
ikegami-tigaw
authored andcommitted
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 <[email protected]> [dwagner: updated commit message] Signed-off-by: Daniel Wagner <[email protected]>
1 parent 9a9ce40 commit 1ca24e4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ tools_build_muon() {
153153

154154
pushd "${TOOLDIR}/muon" || exit 1
155155

156-
CC="${CC}" ninja="${SAMU}" ./bootstrap.sh stage1
156+
CC="${CC}" CFLAGS="${CFLAGS} -std=c99" ninja="${SAMU}" \
157+
./bootstrap.sh stage1
157158

158159
CC="${CC}" ninja="${SAMU}" stage1/muon setup \
159160
-Dprefix="${TOOLDIR}" \

0 commit comments

Comments
 (0)