From 2293742a8470dd74754b723ffba72640cbceca7a Mon Sep 17 00:00:00 2001 From: kimocoder Date: Mon, 11 Nov 2019 02:26:08 +0100 Subject: [PATCH] Support kernel PIC mode for compiling + fixed kernel v5.3 warnings --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4d346e4..cc13ed1 100755 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS) +EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS) -fno-pie EXTRA_CFLAGS += -O1 #EXTRA_CFLAGS += -O3 #EXTRA_CFLAGS += -Wall @@ -17,6 +17,7 @@ EXTRA_CFLAGS += -Wno-uninitialized EXTRA_CFLAGS += -Wno-cast-function-type EXTRA_CFLAGS += -Wno-misleading-indentation EXTRA_CFLAGS += -Wno-missing-field-initializers +EXTRA_CFLAGS += -Wimplicit-fallthrough=0 EXTRA_CFLAGS += -Wno-vla -g #EXTRA_CFLAGS += -Wno-tautological-compare #EXTRA_CFLAGS += -Wno-incompatible-pointer-types