ref: 792060c388b515ba1ffd4df6c624b89ce5ff89a3
parent: abb302f567933a4db09e9ff4d2545f3ab6658807
parent: b7a5d70212146737f868dd6f909a1f3b1177b948
author: Ethan Hugg <[email protected]>
date: Thu Jan 9 05:49:52 EST 2014
Merge pull request #127 from ekr/asan Asan
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@
ROOTDIR=$(PWD)
+
ifeq (,$(wildcard ./gtest))
HAVE_GTEST=No
else
@@ -18,6 +19,11 @@
else
CFLAGS = -g
USE_ASM = No
+endif
+
+ifeq ($(USE_ASAN), Yes)
+CFLAGS += -fsanitize=address
+LDFLAGS += -fsanitize=address
endif
ifeq ($(ENABLE64BIT), Yes)
--- a/build/platform-darwin.mk
+++ b/build/platform-darwin.mk
@@ -1,6 +1,6 @@
ASM = nasm
-CFLAGS += -Werror -fPIC
+CFLAGS += -Wno-deprecated-declarations -Werror -fPIC
LDFLAGS += -lpthread
ASMFLAGS += --prefix _ -DNOPREFIX
ifeq ($(ENABLE64BIT), Yes)