Fix Makefile.inc patch. patch swaps from gnu99 to gnu89, except software

uses c99 constructs.

Fixes build on sparc64
This commit is contained in:
kmos 2022-11-30 05:36:09 +00:00
parent e9eb039db2
commit e15fb8548c
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,7 @@
Index: Makefile.inc
Take out -g and -Os
--- Makefile.inc.orig
+++ Makefile.inc
@@ -15,7 +15,7 @@ else
@ -6,7 +9,7 @@ Index: Makefile.inc
endif
-CFLAGS += -g -Wall -Os -std=gnu99
+CFLAGS += -Wall -std=gnu89
+CFLAGS += -Wall -std=gnu99
CFLAGS += -Wextra -Wdeclaration-after-statement -Wno-format-zero-length \
-Wold-style-definition -Woverflow -Wpointer-arith \
-Wstrict-prototypes -Wunused -Wvla -Wunused-result