aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David Bremner <david@tethera.net>2014-10-03 22:22:10 +0200
committerGravatar David Bremner <david@tethera.net>2014-10-05 07:27:49 +0200
commit68dd804544378e6b27630ea207801a0d569039a3 (patch)
tree1ca1cd8505dc7978062e21ff5d16c6724adaf7ad
parent5916c4634c7f36a42b59c261b4fb76212fbc4c96 (diff)
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.
-rwxr-xr-xconfigure2
-rwxr-xr-xtest/T000-basic.sh1
2 files changed, 1 insertions, 2 deletions
diff --git a/configure b/configure
index 86ba2f7c..331f29bd 100755
--- a/configure
+++ b/configure
@@ -45,7 +45,7 @@ fi
# environment variables)
CC=${CC:-cc}
CXX=${CXX:-c++}
-CFLAGS=${CFLAGS:--O2}
+CFLAGS=${CFLAGS:--g -O2}
CPPFLAGS=${CPPFLAGS:-}
CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)}
LDFLAGS=${LDFLAGS:-}
diff --git a/test/T000-basic.sh b/test/T000-basic.sh
index bf08f3e6..ef642457 100755
--- a/test/T000-basic.sh
+++ b/test/T000-basic.sh
@@ -92,7 +92,6 @@ test_expect_equal \
"$(echo $PATH|cut -f1 -d: | sed -e 's,/test/valgrind/bin$,,')"
test_begin_subtest 'notmuch is compiled with debugging symbols'
-test_subtest_known_broken
readelf --sections $(which notmuch) | grep \.debug
test_expect_equal 0 $?