Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / ce / 493a9f0d80d10b0a8df1e57b9f1d4dc84c40de
1 Return-Path: <bgamari.foss@gmail.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 84612431FC4\r
6         for <notmuch@notmuchmail.org>; Wed, 20 Jan 2010 12:07:42 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.84\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.84 tagged_above=-999 required=5 tests=[AWL=-0.241,\r
12         BAYES_00=-2.599] autolearn=ham\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id SY5h4PJN+b7C for <notmuch@notmuchmail.org>;\r
16         Wed, 20 Jan 2010 12:07:41 -0800 (PST)\r
17 Received: from mail-bw0-f215.google.com (mail-bw0-f215.google.com\r
18         [209.85.218.215])\r
19         by olra.theworths.org (Postfix) with ESMTP id 352FE431FBC\r
20         for <notmuch@notmuchmail.org>; Wed, 20 Jan 2010 12:07:41 -0800 (PST)\r
21 Received: by mail-bw0-f215.google.com with SMTP id 7so1699290bwz.6\r
22         for <notmuch@notmuchmail.org>; Wed, 20 Jan 2010 12:07:40 -0800 (PST)\r
23 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
24         h=domainkey-signature:received:received:from:to:cc:subject:date\r
25         :message-id:x-mailer:in-reply-to:references;\r
26         bh=Xroj28lG92guECqox/J+U37o3b3HDY2LWmGCytfvrUI=;\r
27         b=seC3BJfS0F+vjpxiGCD8VQEIvYuPoHLd8OquRbsCiJBtCxythEqWQ9wXO6LtNkS1Si\r
28         3NcP754SOCps+tSynOzIb1PXXM8tqOcGItZGRiShURQ4w4loFEt2d8d+BpxyVl1njKlj\r
29         LiCSVWJx9OH+CzGDQk+zat5YfogkNkyLD2Jfg=\r
30 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
31         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
32         b=Oj2orqNwJqiZVo9Eo1SyKeg7ka7jBvnEsf0GxFye1PuM9+AFhE94AsvqHQKuxQAX9D\r
33         a3j1WvBVrgv1uhsXvmdIPfPtctV1ubqzkNXhm8cndKA1wgeY1sM5eZF8B3SoTiSCaYz9\r
34         k6916Nkr5b7eflHlOhwF5FAgprQs1NhueqCLk=\r
35 Received: by 10.103.81.13 with SMTP id i13mr213619mul.55.1264018060829;\r
36         Wed, 20 Jan 2010 12:07:40 -0800 (PST)\r
37 Received: from localhost.localdomain (umass-959-105.wireless.umass.edu\r
38         [128.119.77.105])\r
39         by mx.google.com with ESMTPS id 25sm944791mul.50.2010.01.20.12.07.39\r
40         (version=SSLv3 cipher=RC4-MD5); Wed, 20 Jan 2010 12:07:40 -0800 (PST)\r
41 From: Ben Gamari <bgamari.foss@gmail.com>\r
42 To: notmuch@notmuchmail.org,\r
43         cworth@cworth.org\r
44 Date: Wed, 20 Jan 2010 15:07:27 -0500\r
45 Message-Id: <1264018047-28362-2-git-send-email-bgamari.foss@gmail.com>\r
46 X-Mailer: git-send-email 1.6.3.3\r
47 In-Reply-To: <1264018047-28362-1-git-send-email-bgamari.foss@gmail.com>\r
48 References: <1264018047-28362-1-git-send-email-bgamari.foss@gmail.com>\r
49 Subject: [notmuch] [PATCH] Build and link against notmuch shared library\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Wed, 20 Jan 2010 20:07:43 -0000\r
63 \r
64 ---\r
65  Makefile.local     |    5 +++--\r
66  lib/Makefile.local |    8 ++++----\r
67  2 files changed, 7 insertions(+), 6 deletions(-)\r
68 \r
69 diff --git a/Makefile.local b/Makefile.local\r
70 index 933ff4c..6e851e4 100644\r
71 --- a/Makefile.local\r
72 +++ b/Makefile.local\r
73 @@ -21,8 +21,8 @@ notmuch_client_srcs =         \\r
74         show-message.c\r
75  \r
76  notmuch_client_modules = $(notmuch_client_srcs:.c=.o)\r
77 -notmuch: $(notmuch_client_modules) lib/notmuch.a\r
78 -       $(call quiet,CXX,$(LDFLAGS)) $^ $(FINAL_LDFLAGS) -o $@\r
79 +notmuch: $(notmuch_client_modules)\r
80 +       $(call quiet,CXX,$(LDFLAGS)) -lnotmuch $^ $(FINAL_LDFLAGS) -o $@\r
81  \r
82  notmuch.1.gz: notmuch.1\r
83         $(call quiet,gzip) --stdout $^ > $@\r
84 @@ -33,6 +33,7 @@ install: all notmuch.1.gz\r
85                 install -d $$d ; \\r
86         done ;\r
87         install notmuch $(DESTDIR)$(prefix)/bin/\r
88 +       install lib/libnotmuch.so $(DESTDIR)$(prefix)/lib/\r
89         install -m0644 notmuch.1.gz $(DESTDIR)$(prefix)/share/man/man1/\r
90  \r
91  install-emacs: install emacs\r
92 diff --git a/lib/Makefile.local b/lib/Makefile.local\r
93 index 70489e1..5e5a6e6 100644\r
94 --- a/lib/Makefile.local\r
95 +++ b/lib/Makefile.local\r
96 @@ -1,5 +1,5 @@\r
97  dir=lib\r
98 -extra_cflags += -I$(dir)\r
99 +extra_cflags += -I$(dir) -fPIC\r
100  \r
101  libnotmuch_c_srcs =            \\r
102         $(dir)/libsha1.c        \\r
103 @@ -18,8 +18,8 @@ libnotmuch_cxx_srcs =         \\r
104         $(dir)/thread.cc\r
105  \r
106  libnotmuch_modules = $(libnotmuch_c_srcs:.c=.o) $(libnotmuch_cxx_srcs:.cc=.o)\r
107 -$(dir)/notmuch.a: $(libnotmuch_modules)\r
108 -       $(call quiet,AR) rcs $@ $^\r
109 +$(dir)/libnotmuch.so: $(libnotmuch_modules)\r
110 +       $(call quiet,CXX,$(LDFLAGS)) $^ $(FINAL_LDFLAGS) -shared -o $@\r
111  \r
112  SRCS  := $(SRCS) $(libnotmuch_c_srcs) $(libnotmuch_cxx_srcs)\r
113 -CLEAN := $(CLEAN) $(libnotmuch_modules) $(dir)/notmuch.a\r
114 +CLEAN := $(CLEAN) $(libnotmuch_modules) $(dir)/notmuch.so\r
115 -- \r
116 1.6.3.3\r
117 \r