]> git.notmuchmail.org Git - notmuch/commitdiff
Changing build tool for test/random-corpus to CXX instead of CC.
authorPeter Feigl <craven@gmx.net>
Tue, 4 Dec 2012 13:47:00 +0000 (14:47 +0100)
committerDavid Bremner <bremner@debian.org>
Thu, 6 Dec 2012 21:14:36 +0000 (17:14 -0400)
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

test/Makefile.local

index 6a9f15e81500fc9bec9a5c1802c99dcb451eace3..2ec659560626e1a16e224d85e1b58cb318033fe9 100644 (file)
@@ -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 $@