https://svn.lrde.epita.fr/svn/oln/trunk
Index: ChangeLog
from Roland Levillain <roland(a)lrde.epita.fr>
Create a configure variable for C++ compiler flags used for the
tests.
* configure.ac (TESTS_CXXFLAGS): New variable.
configure.ac | 7 +++++++
1 file changed, 7 insertions(+)
Index: configure.ac
--- configure.ac (revision 591)
+++ configure.ac (working copy)
@@ -32,6 +32,13 @@
CXXFLAGS="$CXXFLAGS -pipe"
fi
+# C++ compiler flags for tests.
+AC_ARG_VAR([TESTS_CXXFLAGS])
+# We want no optimization for the tests (too slow), and a lot of debugging.
+if test "$GXX" = yes && test -z "$TESTS_CXXFLAGS"; then
+ TESTS_CXXFLAGS="-O0 -ggdb -Wall -pipe"
+fi
+
## ------- ##
## Tests. ##