Re: [PATCH] Makefile: specify libnotmuch.so location with -rpath
[notmuch-archives.git] / ff / b7c8b53c680bce831f970b1b231811f43969c7
1 Return-Path: <madcat@mymadcat.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 DC7824196F0\r
6         for <notmuch@notmuchmail.org>; Sun, 25 Apr 2010 08:59:37 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9] 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 SwGtC40teKqk for <notmuch@notmuchmail.org>;\r
16         Sun, 25 Apr 2010 08:59:37 -0700 (PDT)\r
17 Received: from mail.mymadcat.com (mymadcat.com [213.251.163.154])\r
18         by olra.theworths.org (Postfix) with ESMTP id F1F15431FC1\r
19         for <notmuch@notmuchmail.org>; Sun, 25 Apr 2010 08:59:36 -0700 (PDT)\r
20 Received: by mail.mymadcat.com (Postfix, from userid 504)\r
21         id 25C933DB69; Sun, 25 Apr 2010 17:59:36 +0200 (CEST)\r
22 Received: from mail.mymadcat.com (localhost.localdomain [127.0.0.1])\r
23         by mail.mymadcat.com (Postfix) with ESMTPA id 495373DAC0;\r
24         Sun, 25 Apr 2010 17:59:35 +0200 (CEST)\r
25 MIME-Version: 1.0\r
26 Content-Type: text/plain;\r
27  charset=UTF-8\r
28 Content-Transfer-Encoding: 7bit\r
29 Date: Sun, 25 Apr 2010 17:59:35 +0200\r
30 From: Adrien Bustany <madcat@mymadcat.com>\r
31 To: Chris Wilson <chris@chris-wilson.co.uk>\r
32 Subject: Re: [PATCH] Makefile: specify libnotmuch.so location with -rpath\r
33 In-Reply-To: <1272209920-362-1-git-send-email-chris@chris-wilson.co.uk>\r
34 References: <1272209920-362-1-git-send-email-chris@chris-wilson.co.uk>\r
35 Message-ID: <8d8e848a456d44b7cc0fe8968e79924b@localhost>\r
36 X-Sender: madcat@mymadcat.com\r
37 User-Agent: RoundCube Webmail/0.3-beta\r
38 Cc: notmuch@notmuchmail.org\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.13\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43         <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Sun, 25 Apr 2010 15:59:38 -0000\r
52 \r
53 On Sun, 25 Apr 2010 16:38:40 +0100, Chris Wilson\r
54 <chris@chris-wilson.co.uk> wrote:\r
55 > In order to handle installation into user directories, it is convenient\r
56 > to encode the library location into the search path for the notmuch\r
57 > executable. This is achieved for the GNU linker with the -rpath\r
58 > argument.\r
59 > ---\r
60 >  Makefile.local |    2 +-\r
61 >  1 files changed, 1 insertions(+), 1 deletions(-)\r
62\r
63 > diff --git a/Makefile.local b/Makefile.local\r
64 > index 5bb570b..77d2c45 100644\r
65 > --- a/Makefile.local\r
66 > +++ b/Makefile.local\r
67 > @@ -31,7 +31,7 @@ GPG_FILE=$(SHA1_FILE).asc\r
68 >  # Smash together user's values with our extra values\r
69 >  FINAL_CFLAGS = -DNOTMUCH_VERSION=$(VERSION) $(CFLAGS) $(WARN_CFLAGS)\r
70 >  $(CONFIGURE_CFLAGS) $(extra_cflags)\r
71 >  FINAL_CXXFLAGS = $(CXXFLAGS) $(WARN_CXXFLAGS) $(CONFIGURE_CXXFLAGS)\r
72 >  $(extra_cflags) $(extra_cxxflags)\r
73 > -FINAL_NOTMUCH_LDFLAGS = $(LDFLAGS) -Llib -lnotmuch\r
74 > +FINAL_NOTMUCH_LDFLAGS = $(LDFLAGS) -Wl,-rpath=$(prefix)/lib -Llib\r
75 > -lnotmuch\r
76 >  FINAL_NOTMUCH_LINKER = CC\r
77 >  ifneq ($(LINKER_RESOLVES_LIBRARY_DEPENDENCIES),1)\r
78 >  FINAL_NOTMUCH_LDFLAGS += $(CONFIGURE_LDFLAGS)\r
79 \r
80 Hello Chris,\r
81 \r
82 I know that many distros (among them Fedora, see\r
83 https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath )\r
84 discourage the use of rpath. Do you think it could be an option set at\r
85 configure time (set rpath or not) ?\r
86 \r
87 Cheers\r
88 \r
89 Adrien\r