Linux Makefile:Enable memory sanitizer if DEBUG=1
Tested-by: IoTivity Jenkins
@@ -20,6 +20,9 @@ libdir = $(exec_prefix)/lib
includedir = $(prefix)/include
pkgconfigdir = $(libdir)/pkgconfig
EXTRA_CFLAGS =
+ifeq ($(DEBUG),1)
+ EXTRA_CFLAGS += -fsanitize=address
+endif
MBEDTLS_DIR := $(ROOT_DIR)/deps/mbedtls
GTEST_DIR = $(ROOT_DIR)/deps/gtest
