From: Michal Sojka <sojkam1@fel.cvut.cz>
To: Carl Worth <cworth@cworth.org>,
Ingmar Vanhassel <ingmar@exherbo.org>,
notmuch@notmuchmail.org
Subject: Re: Notmuch shared library
Date: Thu, 01 Apr 2010 13:10:07 +0200 [thread overview]
Message-ID: <87aatn8m40.fsf@steelpick.2x.cz> (raw)
In-Reply-To: <8739zfip5j.fsf@yoom.home.cworth.org>
On Thu, 01 Apr 2010, Carl Worth wrote:
> Finally, I'm a tiny bit annoyed that now after a fresh checkout of
> notmuch and "make" that one can't easily run ./notmuch without either
> installing the library (or fiddling with LD_LIBRARY_PATH). I've got some
> ideas on how to simplify that, but I'm not sure if any are good or worth
> it.
Hi,
this can be solved by the following patch, but I don't know how portable
it is. You can see the efect of this by
$ objdump -x notmuch|grep RPATH
diff --git a/Makefile.local b/Makefile.local
index 32b8f4a..2a1b55d 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -20,7 +20,7 @@ extra_cxxflags :=
# Smash together user's values with our extra values
FINAL_CFLAGS = $(CFLAGS) $(WARN_CFLAGS) $(CONFIGURE_CFLAGS) $(extra_cflags)
FINAL_CXXFLAGS = $(CXXFLAGS) $(WARN_CXXFLAGS) $(CONFIGURE_CXXFLAGS) $(extra_cflags) $(extra_cxxflags)
-FINAL_LDFLAGS = $(LDFLAGS) $(CONFIGURE_LDFLAGS)
+FINAL_LDFLAGS = $(LDFLAGS) $(CONFIGURE_LDFLAGS) -Wl,-rpath,\$$ORIGIN/lib -z origin --enable-new-dtags
all: notmuch notmuch.1.gz
ifeq ($(MAKECMDGOALS),)
--Michal
next prev parent reply other threads:[~2010-04-01 11:10 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-11 22:37 Notmuch shared library Ben Gamari
2010-03-11 22:37 ` [PATCH] Build and link against notmuch " Ben Gamari
2010-03-12 13:41 ` (no subject) Ingmar Vanhassel
2010-03-15 17:58 ` Ben Gamari
2010-03-12 13:47 ` Ingmar Vanhassel
2010-03-12 15:02 ` Sebastian Spaeth
2010-03-15 16:20 ` Sebastian Spaeth
2010-04-01 7:54 ` Notmuch shared library Carl Worth
2010-04-01 9:10 ` Sebastian Spaeth
2010-04-01 11:10 ` Michal Sojka [this message]
2010-04-01 11:24 ` martin f krafft
2010-04-01 11:41 ` martin f krafft
2010-04-01 12:12 ` Carl Worth
2010-04-01 12:44 ` Michal Sojka
2010-04-01 22:09 ` Carl Worth
2010-04-01 11:47 ` [PATCH] Makefile: Create include directory when installing headers Michal Sojka
2010-04-01 12:13 ` Carl Worth
2010-03-12 13:47 ` [PATCH 1/3] Build and link against notmuch shared library, install notmuch.h Ingmar Vanhassel
2010-03-28 2:44 ` Ben Gamari
2010-03-12 13:47 ` [PATCH 2/3] Fix target dependencies for multiple jobs Ingmar Vanhassel
2010-03-12 13:47 ` [PATCH 3/3] Add a --libdir option to ./configure Ingmar Vanhassel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87aatn8m40.fsf@steelpick.2x.cz \
--to=sojkam1@fel.cvut.cz \
--cc=cworth@cworth.org \
--cc=ingmar@exherbo.org \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).