aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Peter Feigl <craven@gmx.net>2012-12-04 14:47:00 +0100
committerGravatar David Bremner <bremner@debian.org>2012-12-06 17:14:36 -0400
commit2bd922ff06a4e989dc05a1a6739f649c85dae92e (patch)
treea733bba7198ab4ec5644b2a1f10ba9324f616330 /test
parent0f123ab3aa514155b3c8f5e91cad8c2cbb643daf (diff)
Changing build tool for test/random-corpus to CXX instead of CC.
Without this change, GCC complains as follows: gcc test/random-corpus.o test/database-test.o notmuch-config.o command-line-arguments.o lib/libnotmuch.a util/libutil.a parse-time-string/libparse-time-string.a -o test/random-corpus -lgmime-2.6 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -Wl,-rpath,/usr/lib -ltalloc -lxapian /usr/bin/ld: lib/libnotmuch.a(database.o): undefined reference to symbol '_ZNSs4_Rep10_M_destroyERKSaIcE@@GLIBCXX_3.4' /usr/bin/ld: note: '_ZNSs4_Rep10_M_destroyERKSaIcE@@GLIBCXX_3.4' is defined in DSO /usr/lib/libstdc++.so.6 so try adding it to the linker command line /usr/lib/libstdc++.so.6: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make: *** [test/random-corpus] Error 1
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.local2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Makefile.local b/test/Makefile.local
index 6a9f15e8..2ec65956 100644
--- a/test/Makefile.local
+++ b/test/Makefile.local
@@ -22,7 +22,7 @@ random_corpus_deps = $(dir)/random-corpus.o $(dir)/database-test.o \
parse-time-string/libparse-time-string.a
$(dir)/random-corpus: $(random_corpus_deps)
- $(call quiet,CC) $(CFLAGS_FINAL) $^ -o $@ $(CONFIGURE_LDFLAGS)
+ $(call quiet,CXX) $(CFLAGS_FINAL) $^ -o $@ $(CONFIGURE_LDFLAGS)
$(dir)/smtp-dummy: $(smtp_dummy_modules)
$(call quiet,CC) $^ -o $@