Merge pull request #127 from ekr/asan

Asan
This commit is contained in:
Ethan Hugg 2014-01-09 10:49:52 -08:00
commit 792060c388
2 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,7 @@ CP=cp
ROOTDIR=$(PWD)
ifeq (,$(wildcard ./gtest))
HAVE_GTEST=No
else
@ -20,6 +21,11 @@ CFLAGS = -g
USE_ASM = No
endif
ifeq ($(USE_ASAN), Yes)
CFLAGS += -fsanitize=address
LDFLAGS += -fsanitize=address
endif
ifeq ($(ENABLE64BIT), Yes)
CFLAGS += -m64
LDFLAGS += -m64

View File

@ -1,6 +1,6 @@
ASM = nasm
CFLAGS += -Werror -fPIC
CFLAGS += -Wno-deprecated-declarations -Werror -fPIC
LDFLAGS += -lpthread
ASMFLAGS += --prefix _ -DNOPREFIX
ifeq ($(ENABLE64BIT), Yes)