Also allow --enable-debug override the CXXFLAGS,

...as done for normal builds in 2006-08-08T16:52:55Z!bruno@wolff.to. This fixes a problem
with some custom flags which fail in debug mode.
This commit is contained in:
Mark de Wever 2008-08-08 18:35:15 +00:00
parent 74e38146b2
commit 5d4d384958

View file

@ -82,7 +82,7 @@ AC_ARG_ENABLE([strict-compilation],
if test "x$debug" = "xyes"
then
CXXFLAGS="$CXXFLAGS -O0 -DDEBUG -ggdb3 -W -Wall -ansi"
CXXFLAGS="-O0 -DDEBUG -ggdb3 -W -Wall -ansi $CXXFLAGS"
else
CXXFLAGS="-O2 -W -Wall -ansi $CXXFLAGS"
fi