aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Vranken <guidovranken@gmail.com>2019-03-28 11:57:42 +0100
committerGuido Vranken <guidovranken@gmail.com>2019-03-28 11:57:42 +0100
commit608838f241d51f81e437033c261c0ad110065524 (patch)
tree5f6959f032036a4edac715de45e6b90f1eb29a85
parent849ab5e1b0902c2aa36bd6c6c4e0e84838f23013 (diff)
downloadlibsrtp2-608838f241d51f81e437033c261c0ad110065524.tar.gz
Remove --enable-asan, --enable-ubsan, --enable-code-coverage: compile flags can be inhereted from env
-rw-r--r--configure.ac40
1 files changed, 0 insertions, 40 deletions
diff --git a/configure.ac b/configure.ac
index ae34522..b91449b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -201,46 +201,6 @@ if test "$enable_debug_logging" = "yes"; then
fi
AC_MSG_RESULT([$enable_debug_logging])
-AC_MSG_CHECKING([whether to build with AddressSanitizer enabled])
-AC_ARG_ENABLE([asan],
- [AS_HELP_STRING([--enable-asan], [Enable building with AddressSanitizer enabled])],
- [], enable_asan=no)
-if test "$enable_asan" = "yes"; then
- AC_DEFINE([ENABLE_ASAN], [1], [Define to build with AddressSanitizer enabled.])
- [CFLAGS="$CFLAGS -fsanitize=address"]
-fi
-AC_MSG_RESULT([$enable_asan])
-
-AC_MSG_CHECKING([whether to build with UndefinedBehaviorSanitizer enabled])
-AC_ARG_ENABLE([ubsan],
- [AS_HELP_STRING([--enable-ubsan], [Enable building with UndefinedBehaviorSanitizer enabled])],
- [], enable_ubsan=no)
-if test "$enable_ubsan" = "yes"; then
- AC_DEFINE([ENABLE_UBSAN], [1], [Define to build with UndefinedBehaviorSanitizer enabled.])
- [CFLAGS="$CFLAGS -fsanitize=undefined"]
-fi
-AC_MSG_RESULT([$enable_ubsan])
-
-AC_MSG_CHECKING([whether to build with MemorySanitizer enabled])
-AC_ARG_ENABLE([msan],
- [AS_HELP_STRING([--enable-msan], [Enable building with MemorySanitizer enabled])],
- [], enable_msan=no)
-if test "$enable_msan" = "yes"; then
- AC_DEFINE([ENABLE_MSAN], [1], [Define to build with MemorySanitizer enabled.])
- [CFLAGS="$CFLAGS -fsanitize=memory"]
-fi
-AC_MSG_RESULT([$enable_msan])
-
-AC_MSG_CHECKING([whether to build with code coverage instrumentation])
-AC_ARG_ENABLE([code-coverage],
- [AS_HELP_STRING([--enable-code-coverage], [Enable building with code coverage instrumentation])],
- [], enable_code_coverage=no)
-if test "$enable_code_coverage" = "yes"; then
- AC_DEFINE([ENABLE_CODE_COVERAGE], [1], [Define to build with code coverage instrumentation.])
- [CFLAGS="$CFLAGS -fsanitize-coverage=trace-pc-guard,indirect-calls,trace-cmp,trace-gep,trace-div,edge"]
-fi
-AC_MSG_RESULT([$enable_code_coverage])
-
PKG_PROG_PKG_CONFIG
AS_IF([test "x$PKG_CONFIG" != "x"], [PKG_CONFIG="$PKG_CONFIG --static"])