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 4C5B14196F0 for ; Thu, 1 Apr 2010 05:12:52 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.89 X-Spam-Level: X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] 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 oBEkQ1wdI0ox; Thu, 1 Apr 2010 05:12:51 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8B38B431FC1; Thu, 1 Apr 2010 05:12:51 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id 13B53254279; Thu, 1 Apr 2010 05:12:51 -0700 (PDT) From: Carl Worth To: martin f krafft , Michal Sojka In-Reply-To: <20100401112422.GA13985@piper.oerlikon.madduck.net> 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> <87aatn8m40.fsf@steelpick.2x.cz> <20100401112422.GA13985@piper.oerlikon.madduck.net> Date: Thu, 01 Apr 2010 05:12:45 -0700 Message-ID: <87mxxnnzgi.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Cc: notmuch@notmuchmail.org 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 12:12:52 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Thu, 1 Apr 2010 13:24:22 +0200, martin f krafft wr= ote: > also sprach Michal Sojka [2010.04.01.1310 +0200]: > > 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 >=20 > Please avoid rpath. The better solution is probably to create > a wrapper for notmuch, which prepends to LD_LIBRARY_PATH. So now should actually list some of the ideas I had: 1. Use rpath for the local notmuch, (and use chrpath to remove it at the time of "make install"). 2. Create a little shell script that calls LD_LIBRARY_PATH locally, but then install the real program, (not very unlike what libtool does). 3. Create a static program locally, but install a shared version. 4. Create a static program by default, and make distributions pass a --shared option to get the shared version that they want. I can see advantages and disadvantages to each approach. =2DCarl --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLtI296JDdNq8qSWgRAjDVAKCESUeRdBpCA713NMrHGWKZ6Eer/gCgnn15 g/kII6dtgO6vru4I/97hgHw= =k8AW -----END PGP SIGNATURE----- --=-=-=--