Don't add -g to CFLAGS when --enable-debug is specified.
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 18 Jan 2008 15:21:24 +0000 (17:21 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 18 Jan 2008 15:21:24 +0000 (17:21 +0200)
It's the job of the user to put that in CFLAGS.

configure.ac

index 0a5c5dd..a25b9b0 100644 (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.])