unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Linking a privately built -lxapian
@ 2016-08-04  5:50 Matt Armstrong
  2016-08-04  6:34 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Armstrong @ 2016-08-04  5:50 UTC (permalink / raw)
  To: notmuch

I've got a privately built xapian 4.0 in my $HOME/opt/xapian-core-1.4.0
dir, and its bin dir in my path.

xapian-config is working like this:

% xapian-config --libs
-L/usr/local/google/home/marmstrong/opt/xapian-core-1.4.0/lib -lxapian

Then "./configure; make" doesn't produce a functioning build unless I
run notmuch's make one of these two ways:

1) make LDFLAGS=-Wl,-rpath-link,$HOME/opt/xapian-core-1.4.0/lib
2) LD_RUN_PATH=$HOME/opt/xapian-core-1.4.0/lib make

I can live with that, but it brings back decade old memories.  Is there
a better way?

(I don't want to get into packaging up a xapian 1.4 .deb and installing
it on my box just to build notmuch)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Linking a privately built -lxapian
  2016-08-04  5:50 Linking a privately built -lxapian Matt Armstrong
@ 2016-08-04  6:34 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2016-08-04  6:34 UTC (permalink / raw)
  To: Matt Armstrong, notmuch

Matt Armstrong <marmstrong@google.com> writes:

> I've got a privately built xapian 4.0 in my $HOME/opt/xapian-core-1.4.0
> dir, and its bin dir in my path.
>
> xapian-config is working like this:
>
> % xapian-config --libs
> -L/usr/local/google/home/marmstrong/opt/xapian-core-1.4.0/lib -lxapian

I don't think the notmuch configure script is very well set up for "one
package per hierarchy". That could probably improved, but a simple
workaround would be to install xapian and notmuch into the same
${foo}/{lib,bin} hierarchy, where foo=${HOME} and foo=/usr/local are
both reasonably well tested, I believe (although not by me).

d

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-04  6:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-04  5:50 Linking a privately built -lxapian Matt Armstrong
2016-08-04  6:34 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).