From 82e510a54d3d816797f70c7cd63552d4b809f694 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 27 Mar 2017 15:17:53 -0500 Subject: [PATCH] fix sanitize addr --- libs/libks/configure.ac | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/libks/configure.ac b/libs/libks/configure.ac index 94a2f08528..7151282fd5 100644 --- a/libs/libks/configure.ac +++ b/libs/libks/configure.ac @@ -237,9 +237,10 @@ AC_ARG_ENABLE(address_sanitizer, [enable_address_sanitizer="no"]) if test "${enable_address_sanitizer}" = "yes"; then - AM_CFLAGS="${AM_CFLAGS} -fsanitize=address -fno-omit-frame-pointer" - AM_CXXFLAGS="${AM_CXXFLAGS} -fsanitize=address -fno-omit-frame-pointer" - AM_LDFLAGS="${AM_LDFLAGS} -fsanitize=address" + AM_CFLAGS="${AM_CFLAGS} -fsanitize=address -fno-omit-frame-pointer -O0" + AM_CXXFLAGS="${AM_CXXFLAGS} -fsanitize=address -fno-omit-frame-pointer -O0" + AM_LDFLAGS="${AM_LDFLAGS} -fsanitize=address -O0" + CFLAGS="${CFLAGS} -O0" fi PKG_CHECK_MODULES([UUID], [uuid >= 1.0.0],[AC_MSG_RESULT([yes])],[AC_MSG_ERROR([libuuid is required])])