It makes it really easy to enable ASAN, LSAN, MSAN, TSAN, or
USBSAN on a custom build, to track issues.
-AM_CPPFLAGS = -I pdns $(LUA_CFLAGS) $(YAHTTP_CFLAGS) $(BOOST_CPPFLAGS) -I$(CURDIR)/ext/mbedtls/include -O3 -Wall -pthread -DSYSCONFDIR=\"${sysconfdir}\"
+AM_CPPFLAGS = -I pdns $(LUA_CFLAGS) $(YAHTTP_CFLAGS) $(BOOST_CPPFLAGS) $(SANITIZER_FLAGS) -I$(CURDIR)/ext/mbedtls/include -O3 -Wall -pthread -DSYSCONFDIR=\"${sysconfdir}\"
ACLOCAL_AMFLAGS = -I m4
$(READLINE_LIBS) \
$(RT_LIBS) \
$(YAHTTP_LIBS) \
- $(LIBSODIUM_LIBS)
+ $(LIBSODIUM_LIBS) \
+ $(SANITIZER_FLAGS)
AC_LD_RELRO
])
+PDNS_ENABLE_SANITIZERS
+
LDFLAGS="$RELRO_LDFLAGS $LDFLAGS"
AS_IF([test "x$static" != "xyes"], [
--- /dev/null
+../../../m4/pdns_enable_sanitizers.m4
\ No newline at end of file