guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is Guile now setting LD_LIBRARY_PATH?


From: Mark H Weaver
Subject: Re: Why is Guile now setting LD_LIBRARY_PATH?
Date: Fri, 14 Sep 2012 14:06:13 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6

On 09/13/2012 07:30 PM, Bruce Korb wrote:
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).

I haven't looked closely at the relevant code, but I tend to agree with Bruce here. We should not change LD_LIBRARY_PATH. We should do the search ourselves.

     Mark



reply via email to

[Prev in Thread] Current Thread [Next in Thread]