Re: Hi all
[notmuch-archives.git] / e1 / 3f111245611ee0d11feb9f2ed73c98da5a616f
1 Return-Path: <bremner@tesseract.cs.unb.ca>\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 862A2431FBF\r
6         for <notmuch@notmuchmail.org>; Fri,  6 Mar 2015 13:59:46 -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.438\r
10 X-Spam-Level: **\r
11 X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
12         tests=[DNS_FROM_AHBL_RHSBL=2.438] autolearn=disabled\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 0JS0a3yMsIIx for <notmuch@notmuchmail.org>;\r
16         Fri,  6 Mar 2015 13:59:44 -0800 (PST)\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
18         [87.98.215.224])\r
19         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id A8295431FAE\r
22         for <notmuch@notmuchmail.org>; Fri,  6 Mar 2015 13:59:44 -0800 (PST)\r
23 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
24         4.80) (envelope-from <bremner@tesseract.cs.unb.ca>)\r
25         id 1YU0Gt-0000Rf-Ks; Fri, 06 Mar 2015 21:59:03 +0000\r
26 Received: (nullmailer pid 30539 invoked by uid 1000); Fri, 06 Mar 2015\r
27         21:57:57 -0000\r
28 From: David Bremner <david@tethera.net>\r
29 To: notmuch@notmuchmail.org\r
30 Subject: [Patch v2 3/4] build/ruby: use notmuch configure script values for\r
31         shared lib\r
32 Date: Fri,  6 Mar 2015 22:57:52 +0100\r
33 Message-Id: <1425679073-30439-4-git-send-email-david@tethera.net>\r
34 X-Mailer: git-send-email 2.1.4\r
35 In-Reply-To: <1425679073-30439-1-git-send-email-david@tethera.net>\r
36 References: <1420114600-28396-6-git-send-email-david@tethera.net>\r
37         <1425679073-30439-1-git-send-email-david@tethera.net>\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Fri, 06 Mar 2015 21:59:46 -0000\r
51 \r
52 This is supposed to help build on systems like MacOS with different\r
53 conventions for naming shared libraries. We have already computed the\r
54 relevant names, so doing it again in ruby seems like a bad idea.\r
55 ---\r
56  bindings/Makefile.local  |  1 +\r
57  bindings/ruby/extconf.rb | 13 +++----------\r
58  2 files changed, 4 insertions(+), 10 deletions(-)\r
59 \r
60 diff --git a/bindings/Makefile.local b/bindings/Makefile.local\r
61 index 210055f..4d86e59 100644\r
62 --- a/bindings/Makefile.local\r
63 +++ b/bindings/Makefile.local\r
64 @@ -7,6 +7,7 @@ ruby-bindings: lib/libnotmuch.so\r
65  ifeq ($(HAVE_RUBY_DEV),1)\r
66         cd $(dir)/ruby && \\r
67                 EXTRA_LDFLAGS="$(NO_UNDEFINED_LDFLAGS)" \\r
68 +               LIBNOTMUCH="../../lib/$(LINKER_NAME)" \\r
69                 ruby extconf.rb --vendor\r
70         $(MAKE) -C $(dir)/ruby\r
71  else\r
72 diff --git a/bindings/ruby/extconf.rb b/bindings/ruby/extconf.rb\r
73 index 6d5607e..ddaa684 100644\r
74 --- a/bindings/ruby/extconf.rb\r
75 +++ b/bindings/ruby/extconf.rb\r
76 @@ -14,19 +14,12 @@ if ENV['EXTRA_LDFLAGS']\r
77    $LDFLAGS += " " + ENV['EXTRA_LDFLAGS']\r
78  end\r
79  \r
80 -def have_local_library(lib, path, func, headers = nil)\r
81 -  checking_for checking_message(func, lib) do\r
82 -    lib = File.join(path, lib)\r
83 -    if try_func(func, lib, headers)\r
84 -      $LOCAL_LIBS += lib\r
85 -    end\r
86 -  end\r
87 -end\r
88 -\r
89 -if not have_local_library('libnotmuch.so', dir, 'notmuch_database_create', 'notmuch.h')\r
90 +if not ENV['LIBNOTMUCH']\r
91    exit 1\r
92  end\r
93  \r
94 +$LOCAL_LIBS += ENV['LIBNOTMUCH']\r
95 +\r
96  # Create Makefile\r
97  dir_config('notmuch')\r
98  create_makefile('notmuch')\r
99 -- \r
100 2.1.4\r
101 \r