Skip to content

Commit c374870

Browse files
authored
Fix bash compilation with GCC 15
1 parent 12ea427 commit c374870

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

create-utils.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ make CC=musl-gcc -j"$(nproc)"
8686
cd ../bash-${bash_version}
8787
curl -#Lo bash.patch "https://raw.githubusercontent.com/robxu9/bash-static/master/custom/bash-musl-strtoimax-debian-1023053.patch"
8888
patch -Np1 < ./bash.patch
89-
CFLAGS="${CFLAGS} -Wno-error=implicit-function-declaration -static" CC=musl-gcc ./configure --without-bash-malloc
89+
CFLAGS="${CFLAGS} -std=gnu17 -Wno-error=implicit-function-declaration -static" CC=musl-gcc ./configure --without-bash-malloc
9090
autoconf -f
91-
CFLAGS="${CFLAGS} -Wno-error=implicit-function-declaration -static" CC=musl-gcc ./configure --without-bash-malloc
92-
CFLAGS="${CFLAGS} -Wno-error=implicit-function-declaration -static" CC=musl-gcc make -j"$(nproc)"
91+
CFLAGS="${CFLAGS} -std=gnu17 -Wno-error=implicit-function-declaration -static" CC=musl-gcc ./configure --without-bash-malloc
92+
CFLAGS="${CFLAGS} -std=gnu17 -Wno-error=implicit-function-declaration -static" CC=musl-gcc make -j"$(nproc)"
9393

9494
if [ "${build_dwarfs}" != "true" ]; then
9595
cd ../squashfuse-"${squashfuse_version}" || exit 1

0 commit comments

Comments
 (0)