aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-02-22 03:55:01 -0500
committerMike Frysinger <vapier@gentoo.org>2015-02-22 03:55:01 -0500
commitb6e7aef905639342dea38511ccc413eaf9f9dbe8 (patch)
tree9b9969813754ee8809b5c9aa859cf89d17a682a4
parenttests: qmerge: enable tests (diff)
downloadportage-utils-b6e7aef905639342dea38511ccc413eaf9f9dbe8.tar.gz
portage-utils-b6e7aef905639342dea38511ccc413eaf9f9dbe8.tar.bz2
portage-utils-b6e7aef905639342dea38511ccc413eaf9f9dbe8.zip
debug: build with more sanitize modes
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6c05dbd..4e65396 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ CFLAGS ?= -O2 -g -pipe
CFLAGS += -std=gnu99
CPPFLAGS ?=
CPPFLAGS += -DENABLE_NLS=$(call istrue,$(NLS))
-DBG_CFLAGS = -O0 -DEBUG -g3 -ggdb -fno-pie $(call check_gcc, -fsanitize=address)
+DBG_CFLAGS = -O0 -DEBUG -g3 -ggdb -fno-pie $(call check_gcc, -fsanitize=address -fsanitize=leak -fsanitize=undefined)
#CFLAGS += -Os -DOPTIMIZE_FOR_SIZE=2 -falign-functions=2 -falign-jumps=2 -falign-labels=2 -falign-loops=2
#LDFLAGS := -pie
LIBADD += $(shell echo | $(CC) -dM -E - | grep -q ' __FreeBSD__' && echo '-lkvm')