mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-iuh.git
synced 2025-11-03 05:33:22 +00:00
add --enable-sanitize config option
Change-Id: Id9bb6cc982cd30b86f772207184398af6b899f66
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user