Harald Welte has submitted this change and it was merged.
Change subject: add --enable-sanitize config option
......................................................................
add --enable-sanitize config option
Change-Id: I12b7b0e751f274a05e88c79299fd8388667cc542
---
M configure.ac
1 file changed, 12 insertions(+), 0 deletions(-)
Approvals:
Harald Welte: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/configure.ac b/configure.ac
index d72a026..ef234c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,6 +47,18 @@
dnl checks for header files
AC_HEADER_STDC
+AC_ARG_ENABLE(sanitize,
+ [AS_HELP_STRING(
+ [--enable-sanitize],
+ [Compile with address sanitizer enabled],
+ )],
+ [sanitize=$enableval], [sanitize="no"])
+if test x"$sanitize" = x"yes"
+then
+ CFLAGS="$CFLAGS -fsanitize=address -fsanitize=undefined"
+ CPPFLAGS="$CPPFLAGS -fsanitize=address -fsanitize=undefined"
+fi
+
AC_ARG_ENABLE([external_tests],
AC_HELP_STRING([--enable-external-tests],
[Include the VTY/CTRL tests in make check
[default=no]]),
--
To view, visit https://gerrit.osmocom.org/4887
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I12b7b0e751f274a05e88c79299fd8388667cc542
Gerrit-PatchSet: 2
Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder