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 c3ac5b458..28034cb07 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -76,6 +76,11 @@ else
76CFLAGS += $(call cc-option,-Os,$(call cc-option,-O2,)) 76CFLAGS += $(call cc-option,-Os,$(call cc-option,-O2,))
77endif 77endif
78endif 78endif
79ifeq ($(CONFIG_DEBUG_SANITIZE),y)
80CFLAGS += $(call cc-option,-fsanitize=address,)
81CFLAGS += $(call cc-option,-fsanitize=leak,)
82CFLAGS += $(call cc-option,-fsanitize=undefined,)
83endif
79 84
80# If arch/$(ARCH)/Makefile did not override it (with, say, -fPIC)... 85# If arch/$(ARCH)/Makefile did not override it (with, say, -fPIC)...
81ARCH_FPIC ?= -fpic 86ARCH_FPIC ?= -fpic