Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5DEF24196F2 for ; Thu, 1 Apr 2010 04:10:11 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jf1dcqolCMQK for ; Thu, 1 Apr 2010 04:10:10 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 4A4124196F0 for ; Thu, 1 Apr 2010 04:10:10 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 3236A19F3601; Thu, 1 Apr 2010 13:10:09 +0200 (CEST) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id elGhLkDL+yeX; Thu, 1 Apr 2010 13:10:08 +0200 (CEST) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id D0A4B19F33C7; Thu, 1 Apr 2010 13:10:07 +0200 (CEST) Received: from steelpick.2x.cz (k335-30.felk.cvut.cz [147.32.86.30]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id 5D5C9FA003; Thu, 1 Apr 2010 13:10:07 +0200 (CEST) Received: from wsh by steelpick.2x.cz with local (Exim 4.71) (envelope-from ) id 1NxIHn-0002QD-34; Thu, 01 Apr 2010 13:10:07 +0200 From: Michal Sojka To: Carl Worth , Ingmar Vanhassel , notmuch@notmuchmail.org In-Reply-To: <8739zfip5j.fsf@yoom.home.cworth.org> References: <1268347072-2050-1-git-send-email-bgamari.foss@gmail.com> <1268401656-12827-1-git-send-email-ingmar@exherbo.org> <8739zfip5j.fsf@yoom.home.cworth.org> Date: Thu, 01 Apr 2010 13:10:07 +0200 Message-ID: <87aatn8m40.fsf@steelpick.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] Notmuch shared library X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Apr 2010 11:10:11 -0000 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