[PATCH] Makefile: specify libnotmuch.so location with -rpath

Carl Worth cworth at cworth.org
Mon Apr 26 07:29:04 PDT 2010


On Sun, 25 Apr 2010 17:59:35 +0200, Adrien Bustany <madcat at mymadcat.com> wrote:
> On Sun, 25 Apr 2010 16:38:40 +0100, Chris Wilson
> <chris at chris-wilson.co.uk> wrote:
> > In order to handle installation into user directories, it is convenient
> > to encode the library location into the search path for the notmuch
> > executable. This is achieved for the GNU linker with the -rpath
> > argument.
> 
> I know that many distros (among them Fedora, see
> https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath )
> discourage the use of rpath. Do you think it could be an option set at
> configure time (set rpath or not) ?

Right. Debian doesn't want this either.

Some of what I've wanted to do in "make install" to help with this:

  * Figure out the right way to run "ldconfig" from "make install"

  * Test if the runtime linker will be able to find the library, and if
    not print a message about setting LD_LIBRARY_PATH (or
    DYLD_LIBRARY_PATH).

Setting rpath with the option to prevent this might be possible too. But
we can't do this unconditionally.

-Carl

-- 
carl.d.worth at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100426/5709096b/attachment.pgp>


More information about the notmuch mailing list