Prepending ./configure generated options to CFLAGS rather than appending them

This commit is contained in:
Thomas Schmitt 2010-12-13 08:47:24 +01:00
parent 113358daea
commit 8b2af3ac36

View File

@ -133,15 +133,15 @@ AC_ARG_ENABLE(debug,
, enable_debug=yes) , enable_debug=yes)
if test x$enable_debug != xyes; then if test x$enable_debug != xyes; then
if test x$GCC = xyes; then if test x$GCC = xyes; then
CFLAGS="$CFLAGS -O3" CFLAGS="-O3 $CFLAGS"
CFLAGS="$CFLAGS -fexpensive-optimizations" CFLAGS="-fexpensive-optimizations $CFLAGS"
fi fi
CFLAGS="$CFLAGS -DNDEBUG" CFLAGS="-DNDEBUG $CFLAGS"
else else
if test x$GCC = xyes; then if test x$GCC = xyes; then
CFLAGS="$CFLAGS -g -pedantic -Wall" CFLAGS="-g -pedantic -Wall $CFLAGS"
fi fi
CFLAGS="$CFLAGS -DDEBUG" CFLAGS="-DDEBUG $CFLAGS"
fi fi
dnl Verbose debug to make libisofs issue more debug messages dnl Verbose debug to make libisofs issue more debug messages