add shorthand for building with fsanitize.

This commit is contained in:
Joris Vink 2018-06-12 19:43:10 +02:00
parent 8802ad5f40
commit c257299fa4

View File

@ -89,6 +89,11 @@ ifneq ("$(PYTHON)", "")
FEATURES_INC+=$(shell python3-config --includes)
endif
ifneq ("$(SANITIZE)", "")
CFLAGS+=-fsanitize=$(SANITIZE)
LDFLAGS+=-fsanitize=$(SANITIZE)
endif
OSNAME=$(shell uname -s | sed -e 's/[-_].*//g' | tr A-Z a-z)
ifeq ("$(OSNAME)", "darwin")
CFLAGS+=-I/opt/local/include/ -I/usr/local/opt/openssl/include