[Privoxy-commits] [privoxy] 09/14: Add configure option to enable AddressSanitizer
User Git
git at git.privoxy.org
Sun Mar 21 07:35:01 UTC 2021
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit 361d3471e8ee2799213178b854b3b13935b89be9
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Sat Feb 6 11:23:50 2021 +0100
Add configure option to enable AddressSanitizer
---
configure.in | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/configure.in b/configure.in
index 2614cab3..7d5c89a3 100644
--- a/configure.in
+++ b/configure.in
@@ -162,6 +162,12 @@ if test "x$with_assertions" != "xyes"; then
CFLAGS="$CFLAGS -DNDEBUG"
fi
+AC_ARG_WITH(asan, [ --with-asan Enable AddressSanitizer. Requires compiler support.])
+if test "x$with_asan" = "xyes"; then
+ CFLAGS="$CFLAGS -fsanitize=address"
+ LDFLAGS="$LDFLAGS -fsanitize=address"
+fi
+
dnl =================================================================
dnl Check for user and group validity
dnl =================================================================
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list