Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Makefile: add helper for compiling with -fsanitize
[gitweb.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index ffa6da71b7ccaecd6a1fb449b03d3002d5e15ea8..9fb2ff3e82b6bf11313328c309bead8e9792f40d 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-991,6
+991,10
@@
ifdef DEVELOPER
CFLAGS += $(DEVELOPER_CFLAGS)
endif
+ifdef SANITIZE
+BASIC_CFLAGS += -fsanitize=$(SANITIZE) -fno-sanitize-recover=$(SANITIZE)
+endif
+
ifndef sysconfdir
ifeq ($(prefix),/usr)
sysconfdir = /etc