1
0
Fork 0
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:
Lasse Collin 2008-01-18 17:21:24 +02:00
parent 61d1784d8f
commit 079c4f7fc2

View file

@ -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.])