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