configure: add debug flags by default.

This makes development (in particular the test suite) easier. Those
concerned about the extra diskspace can override the default or use
strip.
This commit is contained in:
David Bremner 2014-10-03 22:22:10 +02:00
parent 5916c4634c
commit 68dd804544
2 changed files with 1 additions and 2 deletions

2
configure vendored
View file

@ -45,7 +45,7 @@ fi
# environment variables) # environment variables)
CC=${CC:-cc} CC=${CC:-cc}
CXX=${CXX:-c++} CXX=${CXX:-c++}
CFLAGS=${CFLAGS:--O2} CFLAGS=${CFLAGS:--g -O2}
CPPFLAGS=${CPPFLAGS:-} CPPFLAGS=${CPPFLAGS:-}
CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)} CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)}
LDFLAGS=${LDFLAGS:-} LDFLAGS=${LDFLAGS:-}

View file

@ -92,7 +92,6 @@ test_expect_equal \
"$(echo $PATH|cut -f1 -d: | sed -e 's,/test/valgrind/bin$,,')" "$(echo $PATH|cut -f1 -d: | sed -e 's,/test/valgrind/bin$,,')"
test_begin_subtest 'notmuch is compiled with debugging symbols' test_begin_subtest 'notmuch is compiled with debugging symbols'
test_subtest_known_broken
readelf --sections $(which notmuch) | grep \.debug readelf --sections $(which notmuch) | grep \.debug
test_expect_equal 0 $? test_expect_equal 0 $?