Here is a patch that fixes one part of a bug in the LDG system: it overwrites the environment variables when loading a library, so the library can not use environment variables set by the caller application. A more complete fix is needed when using the LDG resident program. A bug has been opened on Sourceforge LDG' site.
Patch (GCC only):
ldg-2.33-envvar.diff (2 KB)