mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
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
1 changed files with 0 additions and 1 deletions
|
@ -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.]),
|
||||
[], enable_debug=no)
|
||||
if test "x$enable_debug" = xyes; then
|
||||
CFLAGS="-g $CFLAGS"
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
AC_DEFINE(NDEBUG, 1, [Define to disable debugging code.])
|
||||
|
|
Loading…
Reference in a new issue