pmaports/device/linux-wiko-lenny2/use-gnu89-explicitly.patch

30 lines
1.1 KiB
Diff
Raw Normal View History

Author: Antoine Fontaine <antoine.fontaine@epfl.ch>
Date: Wed Nov 27 01:21:35 2019 +0100
applied patch to use gnu89 standard explicitly.
I needed to do so manually because the makefile is changed by downstream.
diff --git a/Makefile b/Makefile
index 917f5c50..68453b1a 100644
--- a/Makefile
+++ b/Makefile
@@ -241,7 +241,7 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
HOSTCC = gcc
HOSTCXX = g++
-HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer
+HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89
HOSTCXXFLAGS = -O2
# Decide whether to build built-in, modular, or both.
@@ -374,7 +374,8 @@ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-Werror-implicit-function-declaration \
-Wno-format-security \
-fno-delete-null-pointer-checks \
- -Werror=format -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
+ -Werror=format -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast \
+ -std=gnu89
KBUILD_AFLAGS_KERNEL :=
KBUILD_CFLAGS_KERNEL :=