Skip to content

Commit

Permalink
build: Add -std=c99 for bootstrapping muon
Browse files Browse the repository at this point in the history
On older distros the bootstrap step fails because C99 is not the
default C version. Thus explicitly set it.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
[dwagner: updated commit message]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
  • Loading branch information
ikegami-t authored and igaw committed Nov 16, 2023
1 parent 9a9ce40 commit 1ca24e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand Down

0 comments on commit 1ca24e4

Please sign in to comment.