[Ltrace-devel] [PATCH 4/6] Remove -O1/-O2/-g from configure script
Zachary T Welch
zwelch at codesourcery.com
Thu Dec 9 02:55:12 UTC 2010
The default CFLAGS are '-g -O2', so providing these options is either
redundant or conflicting. The user can specify their own CFLAGS to
override the defaults, so the configure script should not be setting
these itself. See the documentation for the AC_PROG_CC macro in the
autoconf manual for more information about these defaults.
Signed-off-by: Zachary T Welch <zwelch at codesourcery.com>
---
configure.ac | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index bd16d80..d69f484 100644
--- a/configure.ac
+++ b/configure.ac
@@ -197,10 +197,7 @@ AC_ARG_ENABLE(debug,
[CONFIG_DEBUG=no])
AC_MSG_RESULT([${CONFIG_DEBUG}])
if test "${CONFIG_DEBUG}" = "yes"; then
- CFLAGS="${CFLAGS} -g -O1"
AC_DEFINE(DEBUG, 1, [debugging])
-else
- CFLAGS="${CFLAGS} -O2"
fi
# Ignore the compiler's warnings at your own risk.
--
1.7.2.2
More information about the Ltrace-devel
mailing list