]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: allow extra cflags
authorJohannes Berg <johannes.berg@intel.com>
Fri, 1 Sep 2023 05:50:02 +0000 (07:50 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 21 Dec 2023 09:29:44 +0000 (10:29 +0100)
We can override the entirety of CFLAGS from the make
command line, but not add e.g. -Werror. Append a new
EXTRA_CFLAGS to make that possible.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Makefile

index 2fb8db89c556865709f2531b82e1e59c7298bf46..17be33f787474329f83ace7c1fac247a9177dc35 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,7 @@ CFLAGS += -Wall -Wextra -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-a
 CFLAGS += -Werror-implicit-function-declaration -Wsign-compare -Wno-unused-parameter
 CFLAGS += -Wdeclaration-after-statement
 CFLAGS += $(CFLAGS_EVAL)
+CFLAGS += $(EXTRA_CFLAGS)
 
 _OBJS := $(sort $(patsubst %.c,%.o,$(wildcard *.c)))
 VERSION_OBJS := $(filter-out version.o, $(_OBJS))