From: Fabian Keil Date: Sat, 6 Feb 2021 10:24:52 +0000 (+0100) Subject: Add configure option to enable UndefinedBehaviorSanitizer X-Git-Tag: v_3_0_33~104^2~4 X-Git-Url: http://www.privoxy.org/gitweb/?a=commitdiff_plain;h=22c27e92a8889ef9f6ea2099db2d71c1befeab68;p=privoxy.git Add configure option to enable UndefinedBehaviorSanitizer --- diff --git a/configure.in b/configure.in index 7d5c89a3..6b7f944b 100644 --- a/configure.in +++ b/configure.in @@ -168,6 +168,12 @@ if test "x$with_asan" = "xyes"; then LDFLAGS="$LDFLAGS -fsanitize=address" fi +AC_ARG_WITH(usan, [ --with-usan Enable UndefinedBehaviorSanitizer. Requires compiler support.]) +if test "x$with_usan" = "xyes"; then + CFLAGS="$CFLAGS -fsanitize=undefined" + LDFLAGS="$LDFLAGS -fsanitize=undefined" +fi + dnl ================================================================= dnl Check for user and group validity dnl =================================================================