From 3249c2696468bc82ec45f4fcabddc390473a45da Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sat, 4 Sep 2021 10:39:34 +0200 Subject: Build system fixes Summary: - Always keep $(WARNINGS) when overriding CFLAGS Signed-off-by: Andrew G. Morgan --- Make.Rules | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Make.Rules b/Make.Rules index 3eeb098..00f2a03 100644 --- a/Make.Rules +++ b/Make.Rules @@ -78,10 +78,11 @@ OBJCOPY := $(CROSS_COMPILE)objcopy DEBUG = # -g -DDEBUG WARNINGS=-Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align \ - -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs \ + -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs \ -Winline -Wshadow COPTS ?= -O2 -CFLAGS ?= $(COPTS) $(WARNINGS) $(DEBUG) +CFLAGS ?= $(COPTS) $(DEBUG) +CFLAGS += $(WARNINGS) CPPFLAGS += -Dlinux $(DEFINES) $(LIBCAP_INCLUDES) LDFLAGS ?= # -g -- cgit v1.2.1