From 36c0786255ca66a59ad8e6a534aae37667e21505 Mon Sep 17 00:00:00 2001 From: bryan Date: Sat, 26 Jul 2025 00:43:03 -0400 Subject: [PATCH] Use -std=c17 for gcc15 --- openwrtbuilder | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openwrtbuilder b/openwrtbuilder index da9f83f..9fe96c5 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -190,6 +190,7 @@ install_dependencies() { python3-devel python3-setuptools python3-pyelftools + perl perl-base perl-Data-Dumper perl-File-Compare @@ -591,7 +592,7 @@ from_source() { ((DEBUG)) && make_opts+=("-j1") || make_opts+=("-j$(($(nproc)-1))") # Make image - if ! execute ionice -c 3 chrt --idle 0 nice -n19 make "${make_opts[@]}" world; then + if ! execute HOST_CFLAGS="-std=c17" ionice -c 3 chrt --idle 0 nice -n19 make "${make_opts[@]}" world; then echo "Error: make failed" return 1 fi