blob: 98970621bba3de499a6f780c1b92a92d5ddb09c3 [file] [log] [blame]
developer66e89bc2024-04-23 14:50:01 +08001From 44686ac3e7b536e905c3749814e4eb0e7e210440 Mon Sep 17 00:00:00 2001
2From: Johannes Berg <johannes.berg@intel.com>
3Date: Fri, 1 Sep 2023 07:50:02 +0200
4Subject: [PATCH 23/28] iw: allow extra cflags
5
6We can override the entirety of CFLAGS from the make
7command line, but not add e.g. -Werror. Append a new
8EXTRA_CFLAGS to make that possible.
9
10Signed-off-by: Johannes Berg <johannes.berg@intel.com>
11---
12 Makefile | 1 +
13 1 file changed, 1 insertion(+)
14
15diff --git a/Makefile b/Makefile
16index 2fb8db8..17be33f 100644
17--- a/Makefile
18+++ b/Makefile
19@@ -18,6 +18,7 @@ CFLAGS += -Wall -Wextra -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-a
20 CFLAGS += -Werror-implicit-function-declaration -Wsign-compare -Wno-unused-parameter
21 CFLAGS += -Wdeclaration-after-statement
22 CFLAGS += $(CFLAGS_EVAL)
23+CFLAGS += $(EXTRA_CFLAGS)
24
25 _OBJS := $(sort $(patsubst %.c,%.o,$(wildcard *.c)))
26 VERSION_OBJS := $(filter-out version.o, $(_OBJS))
27--
282.39.2
29