Don't add -g to CFLAGS when --enable-debug is specified.
It's the job of the user to put that in CFLAGS.
This commit is contained in:
parent
61d1784d8f
commit
079c4f7fc2
|
@ -47,7 +47,6 @@ AC_MSG_CHECKING([if debugging code should be compiled])
|
||||||
AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Enable debugging code.]),
|
AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Enable debugging code.]),
|
||||||
[], enable_debug=no)
|
[], enable_debug=no)
|
||||||
if test "x$enable_debug" = xyes; then
|
if test "x$enable_debug" = xyes; then
|
||||||
CFLAGS="-g $CFLAGS"
|
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
else
|
else
|
||||||
AC_DEFINE(NDEBUG, 1, [Define to disable debugging code.])
|
AC_DEFINE(NDEBUG, 1, [Define to disable debugging code.])
|
||||||
|
|
Loading…
Reference in New Issue