Browse Source

configure: Honor the user's $CFLAGS.

Ludovic Courtès 14 years ago
parent
commit
6c269b9087
1 changed files with 2 additions and 2 deletions
  1. 2 2
      configure.ac

+ 2 - 2
configure.ac

@@ -717,9 +717,9 @@ AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug], [enable debug mode])],
 AC_MSG_RESULT($enable_debug)
 
 if test x$enable_debug = xyes; then
-	CFLAGS=" -O0 "
+	CFLAGS="$CFLAGS -O0"
 else
-	CFLAGS=" -O3 "
+	CFLAGS="$CFLAGS -O3"
 fi
 CFLAGS+=" -gdwarf-2 -g3 "