add optional support for building with asan

This commit is contained in:
djcb
2018-11-03 15:47:39 +02:00
parent 7c63fe65eb
commit 052a228be7
8 changed files with 66 additions and 25 deletions

View File

@ -33,8 +33,16 @@ AM_CPPFLAGS=$(XAPIAN_CXXFLAGS) \
# don't use -Werror, as it might break on other compilers
# use -Wno-unused-parameters, because some callbacks may not
# really need all the params they get
AM_CFLAGS=${WARN_CFLAGS}
AM_CXXFLAGS=${WARN_CXXFLAGS}
AM_CFLAGS= \
$(ASAN_CFLAGS) \
${WARN_CFLAGS}
AM_CXXFLAGS= \
$(ASAN_CFLAGS) \
${WARN_CFLAGS}
${WARN_CXXFLAGS}
AM_LDFLAGS= \
$(ASAN_LDFLAGS)
noinst_PROGRAMS= $(TEST_PROGS)