[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why is Guile now setting LD_LIBRARY_PATH?
From: |
Bruce Korb |
Subject: |
Re: Why is Guile now setting LD_LIBRARY_PATH? |
Date: |
Thu, 13 Sep 2012 16:30:48 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120825 Thunderbird/15.0 |
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).