add --enable-sanitize config option
Change-Id: Id9bb6cc982cd30b86f772207184398af6b899f66
This commit is contained in:
parent
dfc75df199
commit
4325a2ac4b
12
configure.ac
12
configure.ac
|
@ -45,6 +45,18 @@ AC_CONFIG_MACRO_DIR([m4])
|
|||
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_OUTPUT(
|
||||
libosmo-ranap.pc
|
||||
src/Makefile
|
||||
|
|
Loading…
Reference in New Issue