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).