summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2021-09-04 10:39:34 +0200
committerAndrew G. Morgan <morgan@kernel.org>2021-09-04 11:50:33 -0700
commit3249c2696468bc82ec45f4fcabddc390473a45da (patch)
treeb685e9aef2a7cc29f08b6fb782b4069db3edca7b
parent0f286b584ebe7019ba33cc48ad9e4ad8efb5b23c (diff)
downloadlibcap2-3249c2696468bc82ec45f4fcabddc390473a45da.tar.gz
Build system fixes
Summary: - Always keep $(WARNINGS) when overriding CFLAGS Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
-rw-r--r--Make.Rules5
1 files 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