From: Lasse Collin Date: Fri, 18 Jan 2008 15:21:24 +0000 (+0200) Subject: Don't add -g to CFLAGS when --enable-debug is specified. X-Git-Tag: upstream/5.1.3~822 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=079c4f7fc26b3d0b33d9ae7536697b45f3b73585;p=platform%2Fupstream%2Fxz.git Don't add -g to CFLAGS when --enable-debug is specified. It's the job of the user to put that in CFLAGS. --- diff --git a/configure.ac b/configure.ac index 0a5c5dd..a25b9b0 100644 --- a/configure.ac +++ b/configure.ac @@ -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.])