diff options
author | David Seifert <soap@gentoo.org> | 2021-09-04 10:39:34 +0200 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2021-09-04 11:50:33 -0700 |
commit | 3249c2696468bc82ec45f4fcabddc390473a45da (patch) | |
tree | b685e9aef2a7cc29f08b6fb782b4069db3edca7b | |
parent | 0f286b584ebe7019ba33cc48ad9e4ad8efb5b23c (diff) | |
download | libcap2-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.Rules | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |