developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 1 | From 44686ac3e7b536e905c3749814e4eb0e7e210440 Mon Sep 17 00:00:00 2001 |
| 2 | From: Johannes Berg <johannes.berg@intel.com> |
| 3 | Date: Fri, 1 Sep 2023 07:50:02 +0200 |
| 4 | Subject: [PATCH 23/28] iw: allow extra cflags |
| 5 | |
| 6 | We can override the entirety of CFLAGS from the make |
| 7 | command line, but not add e.g. -Werror. Append a new |
| 8 | EXTRA_CFLAGS to make that possible. |
| 9 | |
| 10 | Signed-off-by: Johannes Berg <johannes.berg@intel.com> |
| 11 | --- |
| 12 | Makefile | 1 + |
| 13 | 1 file changed, 1 insertion(+) |
| 14 | |
| 15 | diff --git a/Makefile b/Makefile |
| 16 | index 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 | -- |
| 28 | 2.39.2 |
| 29 | |