Skip to content
Snippets Groups Projects
Commit 3522b13e authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa
Browse files

Fix --enable-debug handling

parent 9e74dde2
No related merge requests found
......@@ -69,9 +69,10 @@ AC_ARG_ENABLE([debug],
[Turn on debug output])],
[debug=$enableval], [debug=no])
if test "x${debug}" = "x${enableval}"; then
if test "x${debug}" = "xyes"; then
DEBUGCFLAGS="-O0 -g3"
AC_SUBST([DEBUGCFLAGS])
AC_DEFINE([DEBUGBUILD], [1], [Define to 1 to enable debug output.])
fi
AC_ARG_ENABLE(asan,
......@@ -342,11 +343,6 @@ AX_CHECK_COMPILE_FLAG([-fvisibility=hidden], [EXTRACFLAG="-fvisibility=hidden"])
AC_SUBST([EXTRACFLAG])
# debug build
if test "x$debug" != "xno"; then
AC_DEFINE([DEBUGBUILD], [1], [Define to 1 to enable debug output.])
fi
AC_CONFIG_FILES([
Makefile
lib/Makefile
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment