aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Rules.mak8
1 files changed, 8 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index bcbed17a2..98ed96543 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -196,6 +196,14 @@ else
196 LDFLAGS += $(call check_ld,--warn-common,) 196 LDFLAGS += $(call check_ld,--warn-common,)
197 LDFLAGS += $(call check_ld,--sort-common,) 197 LDFLAGS += $(call check_ld,--sort-common,)
198endif 198endif
199# warn a bit more verbosely for non-release versions
200ifneq ($(EXTRAVERSION),)
201 CFLAGS+=$(call check_gcc,-Wformat,)
202 CFLAGS+=$(call check_gcc,-Wformat=2,)
203 CFLAGS+=$(call check_gcc,-Wformat-nonliteral,)
204 CFLAGS+=$(call check_gcc,-Wformat-security,)
205 CFLAGS+=$(call check_gcc,-Wformat-y2k,)
206endif
199STRIPCMD:=$(STRIP) -s --remove-section=.note --remove-section=.comment 207STRIPCMD:=$(STRIP) -s --remove-section=.note --remove-section=.comment
200ifeq ($(strip $(CONFIG_STATIC)),y) 208ifeq ($(strip $(CONFIG_STATIC)),y)
201 PROG_CFLAGS += $(call check_gcc,-static,) 209 PROG_CFLAGS += $(call check_gcc,-static,)