From db6c93fdec1aa2c62281852e25dea8a145613700 Mon Sep 17 00:00:00 2001 From: Peter Feigl Date: Tue, 4 Dec 2012 14:47:00 +0100 Subject: [PATCH] [PATCH 1/1] Changing build tool for test/random-corpus to CXX instead of CC. --- c6/c95cf0475f3c69120d556f8ffbff5afe1a351b | 71 +++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 c6/c95cf0475f3c69120d556f8ffbff5afe1a351b diff --git a/c6/c95cf0475f3c69120d556f8ffbff5afe1a351b b/c6/c95cf0475f3c69120d556f8ffbff5afe1a351b new file mode 100644 index 000000000..29826d02d --- /dev/null +++ b/c6/c95cf0475f3c69120d556f8ffbff5afe1a351b @@ -0,0 +1,71 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 7D00A431FB6 + for ; Tue, 4 Dec 2012 05:47:07 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.001 +X-Spam-Level: +X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 + tests=[FREEMAIL_FROM=0.001] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id zE9Wd12eXaRc for ; + Tue, 4 Dec 2012 05:47:06 -0800 (PST) +Received: from mail.nexoid.at (www.nexoid.at [178.79.130.240]) + (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 5513C431FD5 + for ; Tue, 4 Dec 2012 05:47:02 -0800 (PST) +Received: by mail.nexoid.at (Postfix, from userid 1000) + id 5963011C109; Tue, 4 Dec 2012 14:47:01 +0100 (CET) +From: Peter Feigl +To: notmuch@notmuchmail.org +Subject: [PATCH 1/1] Changing build tool for test/random-corpus to CXX instead + of CC. +Date: Tue, 4 Dec 2012 14:47:00 +0100 +Message-Id: <1354628820-2262-1-git-send-email-craven@gmx.net> +X-Mailer: git-send-email 1.8.0 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Tue, 04 Dec 2012 13:47:08 -0000 + +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 | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/Makefile.local b/test/Makefile.local +index 6a9f15e..2ec6595 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 $@ +-- +1.8.0 + -- 2.26.2