From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bruce Korb Newsgroups: gmane.lisp.guile.devel Subject: Re: Why is Guile now setting LD_LIBRARY_PATH? Date: Thu, 13 Sep 2012 16:30:48 -0700 Message-ID: <50526CA8.4020801@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347579057 14185 80.91.229.3 (13 Sep 2012 23:30:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2012 23:30:57 +0000 (UTC) To: =?windows-1252?Q?Ludovic_Court=E8s?= , Guile Development Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Sep 14 01:31:00 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TCIs8-0003iD-4H for guile-devel@m.gmane.org; Fri, 14 Sep 2012 01:31:00 +0200 Original-Received: from localhost ([::1]:59819 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCIs4-00072D-DS for guile-devel@m.gmane.org; Thu, 13 Sep 2012 19:30:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCIs1-000726-At for guile-devel@gnu.org; Thu, 13 Sep 2012 19:30:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCIs0-0003Dm-H8 for guile-devel@gnu.org; Thu, 13 Sep 2012 19:30:53 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:52642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCIs0-0003Di-DX for guile-devel@gnu.org; Thu, 13 Sep 2012 19:30:52 -0400 Original-Received: from adsl-76-254-30-248.dsl.pltn13.sbcglobal.net ([76.254.30.248]:61695 helo=[192.168.10.2]) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1TCIrz-0003hU-7N; Thu, 13 Sep 2012 19:30:51 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120825 Thunderbird/15.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.10 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:14884 Archived-At: On 09/11/12 09:21, Bruce Korb wrote: >> Do you have any solutions meeting this criteria in mind? > > Wrap your dlopen's in code that pushes the needed values to the environment I have a better solution that does not require serializing environment variable access: do your own search. Do full path dlopen-s first, using the paths you otherwise would have put into LD_LIBRARY_PATH. If they fail, then fall back to whatever the glibc would otherwise do (maybe even using LD_LIBRARY_PATH -- it hasn't been touched).