aboutsummaryrefslogtreecommitdiff
path: root/Makefile.flags
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.flags')
-rw-r--r--Makefile.flags5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.flags b/Makefile.flags
index 9f77674ba..65021de25 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -75,6 +75,11 @@ else
75CFLAGS += $(call cc-option,-Os,$(call cc-option,-O2,)) 75CFLAGS += $(call cc-option,-Os,$(call cc-option,-O2,))
76endif 76endif
77endif 77endif
78ifeq ($(CONFIG_DEBUG_SANITIZE),y)
79CFLAGS += $(call cc-option,-fsanitize=address,)
80CFLAGS += $(call cc-option,-fsanitize=leak,)
81CFLAGS += $(call cc-option,-fsanitize=undefined,)
82endif
78 83
79# If arch/$(ARCH)/Makefile did not override it (with, say, -fPIC)... 84# If arch/$(ARCH)/Makefile did not override it (with, say, -fPIC)...
80ARCH_FPIC ?= -fpic 85ARCH_FPIC ?= -fpic