Browse Source

Use -std=c17 for gcc15

bryan 6 days ago
parent
commit
36c0786255
1 changed files with 2 additions and 1 deletions
  1. 2 1
      openwrtbuilder

+ 2 - 1
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