projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1413a9f
)
Add configure option to enable AddressSanitizer
author
Fabian Keil
<fk@fabiankeil.de>
Sat, 6 Feb 2021 10:23:50 +0000
(11:23 +0100)
committer
Fabian Keil
<fk@fabiankeil.de>
Sun, 21 Mar 2021 06:58:53 +0000
(07:58 +0100)
configure.in
patch
|
blob
|
history
diff --git
a/configure.in
b/configure.in
index
2614cab
..
7d5c89a
100644
(file)
--- a/
configure.in
+++ b/
configure.in
@@
-162,6
+162,12
@@
if test "x$with_assertions" != "xyes"; then
CFLAGS="$CFLAGS -DNDEBUG"
fi
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 =================================================================
dnl =================================================================
dnl Check for user and group validity
dnl =================================================================