1 Return-Path: <stewart@flamingspork.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 28F2E431FBC
\r
6 for <notmuch@notmuchmail.org>; Tue, 17 Nov 2009 17:06:13 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 Received: from olra.theworths.org ([127.0.0.1])
\r
9 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
10 with ESMTP id NooLWEvN2Gmf for <notmuch@notmuchmail.org>;
\r
11 Tue, 17 Nov 2009 17:06:12 -0800 (PST)
\r
12 Received: from mout.perfora.net (mout.perfora.net [74.208.4.194])
\r
13 by olra.theworths.org (Postfix) with ESMTP id 81798431FAE
\r
14 for <notmuch@notmuchmail.org>; Tue, 17 Nov 2009 17:06:12 -0800 (PST)
\r
15 Received: from kaylee.flamingspork.com (kaylee.flamingspork.com
\r
16 [74.207.245.61]) by mx.perfora.net (node=mxus1) with ESMTP (Nemesis)
\r
17 id 0MCK5p-1NJ7ic2t5V-0095KU for notmuch@notmuchmail.org;
\r
18 Tue, 17 Nov 2009 20:06:12 -0500
\r
19 Received: from willster (localhost [127.0.0.1])
\r
20 by kaylee.flamingspork.com (Postfix) with ESMTPS id 6FE636333;
\r
21 Wed, 18 Nov 2009 01:05:48 +0000 (UTC)
\r
22 Received: by willster (Postfix, from userid 1000)
\r
23 id 85CA410F5D86; Wed, 18 Nov 2009 12:06:08 +1100 (EST)
\r
24 From: Stewart Smith <stewart@flamingspork.com>
\r
25 To: notmuch@notmuchmail.org
\r
26 Date: Wed, 18 Nov 2009 12:05:53 +1100
\r
27 Message-Id: <1258506353-20352-1-git-send-email-stewart@flamingspork.com>
\r
28 X-Mailer: git-send-email 1.6.3.3
\r
29 Subject: [notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++
\r
31 X-BeenThere: notmuch@notmuchmail.org
\r
32 X-Mailman-Version: 2.1.12
\r
34 List-Id: "Use and development of the notmuch mail system."
\r
35 <notmuch.notmuchmail.org>
\r
36 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
37 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
38 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
39 List-Post: <mailto:notmuch@notmuchmail.org>
\r
40 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
41 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
42 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
43 X-List-Received-Date: Wed, 18 Nov 2009 01:06:13 -0000
\r
45 Previously, Ubuntu 9.10, gcc 4.4.1 was getting:
\r
47 ccache gcc `pkg-config --libs glib-2.0 gmime-2.4 talloc` `xapian-config --libs` notmuch.o notmuch-config.o notmuch-dump.o notmuch-new.o notmuch-reply.o notmuch-restore.o notmuch-search.o notmuch-setup.o notmuch-show.o notmuch-tag.o notmuch-time.o gmime-filter-reply.o query-string.o show-message.o lib/notmuch.a -o notmuch
\r
48 /usr/bin/ld: lib/notmuch.a(database.o): in function global constructors keyed to BOOLEAN_PREFIX_INTERNAL:database.cc(.text+0x3a): error: undefined reference to 'std::ios_base::Init::Init()'
\r
50 Makefile.local | 2 +-
\r
51 1 files changed, 1 insertions(+), 1 deletions(-)
\r
53 diff --git a/Makefile.local b/Makefile.local
\r
54 index f824bed..dbd3e20 100644
\r
55 --- a/Makefile.local
\r
56 +++ b/Makefile.local
\r
57 @@ -18,7 +18,7 @@ notmuch_client_srcs = \
\r
59 notmuch_client_modules = $(notmuch_client_srcs:.c=.o)
\r
60 notmuch: $(notmuch_client_modules) lib/notmuch.a
\r
61 - $(CC) $(LDFLAGS) $^ -o $@
\r
62 + $(CXX) $(LDFLAGS) $^ -o $@
\r
65 gzip --stdout notmuch.1 > notmuch.1.gz
\r