diff --git a/Makefile b/Makefile index 7f4e5c9b1..c7f56be3c 100644 --- a/Makefile +++ b/Makefile @@ -112,8 +112,8 @@ ifeq ($(SANITIZER),address) ENABLE_COVER := 0 endif ifeq ($(SANITIZER),memory) -CXXFLAGS += -fPIE -LDFLAGS += -fPIE +CXXFLAGS += -fPIE -fsanitize-memory-track-origins +LDFLAGS += -fPIE -fsanitize-memory-track-origins endif ifeq ($(SANITIZER),cfi) CXXFLAGS += -flto