Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / 1c / b87c000f49357ead7d8887074c3c46a986f907
1 Return-Path: <Sebastian@SSpaeth.de>\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 BED64431FBD\r
6         for <notmuch@notmuchmail.org>; Thu,  4 Mar 2010 00:26:00 -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: -0.677\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.677 tagged_above=-999 required=5\r
12         tests=[AWL=-0.678, BAYES_50=0.001] 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 wUXjEvNajQDl for <notmuch@notmuchmail.org>;\r
16         Thu,  4 Mar 2010 00:26:00 -0800 (PST)\r
17 Received: from homiemail-a12.g.dreamhost.com (caiajhbdccah.dreamhost.com\r
18         [208.97.132.207])\r
19         by olra.theworths.org (Postfix) with ESMTP id 025C9431FAE\r
20         for <notmuch@notmuchmail.org>; Thu,  4 Mar 2010 00:25:59 -0800 (PST)\r
21 Received: from sspaeth.de (mtec-hg-docking-1-dhcp-204.ethz.ch\r
22         [129.132.133.204])\r
23         by homiemail-a12.g.dreamhost.com (Postfix) with ESMTPA id 76831714060; \r
24         Thu,  4 Mar 2010 00:25:47 -0800 (PST)\r
25 Received: by sspaeth.de (sSMTP sendmail emulation);\r
26         Thu, 04 Mar 2010 09:25:45 +0100\r
27 From: "Sebastian Spaeth" <Sebastian@SSpaeth.de>\r
28 To: Ben Gamari <bgamari.foss@gmail.com>, notmuch@notmuchmail.org,\r
29         cworth@cworth.org\r
30 In-Reply-To: <1264368215-7101-3-git-send-email-bgamari.foss@gmail.com>\r
31 References: <1264272821-sup-5331@ben-laptop>\r
32         <1264368215-7101-1-git-send-email-bgamari.foss@gmail.com>\r
33         <1264368215-7101-2-git-send-email-bgamari.foss@gmail.com>\r
34         <1264368215-7101-3-git-send-email-bgamari.foss@gmail.com>\r
35 Date: Thu, 04 Mar 2010 09:25:45 +0100\r
36 Message-ID: <878wa8sdbq.fsf@SSpaeth.de>\r
37 MIME-Version: 1.0\r
38 Content-Type: text/plain; charset=us-ascii\r
39 Subject: Re: [notmuch] [PATCH 2/2] Build and link against notmuch shared\r
40  library\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Thu, 04 Mar 2010 08:26:00 -0000\r
54 \r
55 >  notmuch_client_modules = $(notmuch_client_srcs:.c=.o)\r
56 > -notmuch: $(notmuch_client_modules) lib/notmuch.a\r
57 > -     $(call quiet,CXX,$(LDFLAGS)) $^ $(FINAL_LDFLAGS) -o $@\r
58 > +notmuch: $(notmuch_client_modules) lib/libnotmuch.so\r
59 > +     $(call quiet,CC,$(LDFLAGS)) -lnotmuch $(filter-out lib/libnotmuch.so,$^) $(FINAL_LDFLAGS) -o $@\r
60 \r
61 I just tried out this patch to compile notmuch as a shared library and\r
62 while producing lib/libnotmuch.so.1 it fails to find notmuch later:\r
63 \r
64 CC      notmuch\r
65 /usr/bin/ld: cannot find -lnotmuch\r
66 \r
67 Aso it creates libnotmuch.so.1 in lib but seems to try symlinking it in\r
68 the "compat" dir which fails and produces a dead symlink.\r
69 \r
70 CXX     lib/libnotmuch.so.1\r
71 ln -sf compat/libnotmuch.so.1 compat/libnotmuch.so\r
72 \r
73 Is more needed than this patch? Also, *I* think it would be nice to\r
74 support --static or --shared as options to --configure. But that is a\r
75 minor thing, probably.\r
76 \r
77 Sebastian\r