Put -g into the CXXFLAGS in configure.in. This can be overidden with:
authorthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Sat, 23 May 2009 15:15:48 +0000 (15:15 +0000)
committerthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Sat, 23 May 2009 15:15:48 +0000 (15:15 +0000)
# make CXXFLAGS='-O2'

Put -Wall in ragel_CXXFLAGS in ragel/Makefile.am so that it is always used.

git-svn-id: http://svn.complang.org/ragel/trunk@873 052ea7fc-9027-0410-9066-f65837a77df0

configure.in
ragel/Makefile.am

index 9e1c05b..12098fe 100644 (file)
@@ -41,6 +41,9 @@ AC_PROG_CXX
 AC_CHECK_TOOL(AR, ar)
 AC_PROG_RANLIB
 
+# Default flags.
+CXXFLAGS="-g"
+
 dnl Set test on c++ compiler.
 AC_LANG_CPLUSPLUS
 
index 2d62db2..702bcae 100644 (file)
@@ -3,6 +3,8 @@ INCLUDES = -I../aapl
 
 bin_PROGRAMS = ragel
 
+ragel_CXXFLAGS = -Wall
+
 ragel_SOURCES = \
        buffer.h cdgoto.h cscodegen.h csipgoto.h inputdata.h rbxgoto.h \
        rubyflat.h cdcodegen.h cdipgoto.h csfflat.h cssplit.h javacodegen.h \